59 current 2025-10-05 14:51:59 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user