Add syncthing base, git submodules
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -309,7 +309,7 @@ in
|
||||
packages = mkOption {
|
||||
type = listOf package;
|
||||
default = with pkgs; [
|
||||
gnome.adwaita-icon-theme
|
||||
adwaita-icon-theme
|
||||
nixos-icons
|
||||
];
|
||||
description = "The icon theme packages.";
|
||||
@@ -325,7 +325,7 @@ in
|
||||
|
||||
packages = mkOption {
|
||||
type = listOf package;
|
||||
default = with pkgs; [ gnome.adwaita-icon-theme ];
|
||||
default = with pkgs; [ adwaita-icon-theme ];
|
||||
description = "The cursor theme packages.";
|
||||
};
|
||||
|
||||
|
@@ -10,44 +10,18 @@ in
|
||||
persistence."/cache${user.home}".directories = [ "${hmConfig.xdg.relativeCacheHome}/cliphist" ];
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
cliphist-text = {
|
||||
Unit = {
|
||||
Description = "Clipboard manager (text)";
|
||||
BindsTo = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
services.cliphist.enable = true;
|
||||
|
||||
Service.ExecStart = lib.meta.getExe (pkgs.writeShellApplication {
|
||||
name = "init-cliphist-text";
|
||||
runtimeInputs = with pkgs; [ wl-clipboard cliphist ];
|
||||
text = "exec wl-paste --type text --watch cliphist store";
|
||||
});
|
||||
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
cliphist-image = {
|
||||
Unit = {
|
||||
Description = "Clipboard manager (images)";
|
||||
BindsTo = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service.ExecStart = lib.meta.getExe (pkgs.writeShellApplication {
|
||||
name = "init-cliphist-image";
|
||||
runtimeInputs = with pkgs; [ wl-clipboard cliphist ];
|
||||
text = "exec wl-paste --type image --watch cliphist store";
|
||||
});
|
||||
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings.bind = [
|
||||
"$mod, v, exec, cliphist list | ${lib.meta.getExe pkgs.rofi-wayland} -cache-dir ${hmConfig.xdg.cacheHome}/rofi -dmenu -display-columns 2 | cliphist decode | wl-copy"
|
||||
"$mod_CTRL, v, exec, cliphist list | ${lib.meta.getExe pkgs.rofi-wayland} -cache-dir ${hmConfig.xdg.cacheHome}/rofi -dmenu -display-columns 2 | cliphist delete"
|
||||
"$mod_CTRL_SHIFT, v, exec, cliphist wipe"
|
||||
];
|
||||
wayland.windowManager.hyprland.settings.bind =
|
||||
let
|
||||
cliphist = lib.meta.getExe pkgs.cliphist;
|
||||
rofi = lib.meta.getExe pkgs.rofi-wayland;
|
||||
wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy";
|
||||
in
|
||||
[
|
||||
"$mod, v, exec, ${cliphist} list | ${rofi} -cache-dir ${hmConfig.xdg.cacheHome}/rofi -dmenu -display-columns 2 | ${cliphist} decode | ${wl-copy}"
|
||||
"$mod_CTRL, v, exec, ${cliphist} list | ${rofi} -cache-dir ${hmConfig.xdg.cacheHome}/rofi -dmenu -display-columns 2 | ${cliphist} delete"
|
||||
"$mod_CTRL_SHIFT, v, exec, ${cliphist} wipe"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
15
users/configs/syncthing/default.nix
Normal file
15
users/configs/syncthing/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ user ? throw "user argument is required" }: { ... }:
|
||||
|
||||
{
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 22000 ];
|
||||
allowedUDPPorts = [ 21027 22000 ];
|
||||
};
|
||||
|
||||
home-manager.users.${user.name} = {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
extraOptions = [ "-no-default-folder" ];
|
||||
};
|
||||
};
|
||||
}
|
@@ -18,6 +18,7 @@ in
|
||||
(import ../configs/bluetooth { inherit user; })
|
||||
(import ../configs/blueman { inherit user; })
|
||||
(import ../configs/cbatticon { inherit user; })
|
||||
(import ../configs/syncthing { inherit user; })
|
||||
(import ../configs/brightnessctl { inherit user; })
|
||||
(import ../configs/pavucontrol { inherit user; })
|
||||
(import ../configs/pipewire { inherit user; })
|
||||
|
Reference in New Issue
Block a user