59 current 2025-10-05 14:51:59 25.05.20251001.5b5be50 6.12.49 *

This commit is contained in:
2025-10-05 14:52:33 -05:00
parent 88435e911e
commit b3b9a4dc96
2 changed files with 1 additions and 12 deletions

View File

@@ -20,14 +20,6 @@ in
else "/home/blake/.local/state/syncthing";
description = "optional override for syncthing data directory.";
};
config_dir = lib.mkOption {
type = lib.types.str;
default = if cfg.mode == "server"
then "/var/lib/syncthing/.stconfig"
else "/home/blake/.config/syncthing";
description = "optional override for syncthing config directory.";
};
};
config = lib.mkIf cfg.enable {
@@ -35,10 +27,7 @@ in
enable = true;
user = "root";
group = "blake";
#dataDir = "/home/blake/.local/state/syncthing";
#configDir = "/home/blake/.local/state/syncthing";
dataDir = cfg.data_dir;
configDir = cfg.config_dir;
guiAddress = "0.0.0.0:2222";
openDefaultPorts = true;
};