adding syncthing

This commit is contained in:
cnst
2024-09-26 17:02:28 +02:00
parent c0190757e1
commit 3542de91c6
5 changed files with 63 additions and 40 deletions

View File

@@ -17,6 +17,7 @@
"${userModules}/userd/mako"
"${userModules}/userd/udiskie"
"${userModules}/userd/gpg"
"${userModules}/userd/syncthing"
"${userModules}/utils/anyrun"
"${userModules}/utils/misc"
"${userModules}/utils/rofi"

View File

@@ -107,6 +107,7 @@ in {
x = "delete_selection";
y = {
y = ["extend_to_line_bounds" "yank_main_selection_to_clipboard" "normal_mode" "collapse_selection"];
d = ":yank-diagnostic";
};
Y = ["extend_to_line_end" "yank_main_selection_to_clipboard" "collapse_selection"];
P = ["paste_clipboard_before" "collapse_selection"];

View File

@@ -0,0 +1,18 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.userd.syncthing;
in {
options = {
modules.userd.syncthing.enable = mkEnableOption "Enables syncthing";
};
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
tray.enable = true;
};
};
}

View File

@@ -63,6 +63,9 @@
udiskie = {
enable = true;
};
syncthing = {
enable = true;
};
};
utils = {
anyrun = {