57 current 2025-10-05 14:39:37 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -15,13 +15,17 @@ in
|
||||
|
||||
data_dir = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "/var/lib/syncthing";
|
||||
default = if cfg.mode == "server"
|
||||
then "/var/lib/syncthing"
|
||||
else "/home/blake/.local/state/syncthing";
|
||||
description = "optional override for syncthing data directory.";
|
||||
};
|
||||
|
||||
config_dir = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "/var/lib/syncthing/config";
|
||||
default = if cfg.mode == "server"
|
||||
then "/var/lib/syncthing/.stconfig"
|
||||
else "/home/blake/.config/syncthing";
|
||||
description = "optional override for syncthing config directory.";
|
||||
};
|
||||
};
|
||||
@@ -31,11 +35,7 @@ in
|
||||
enable = true;
|
||||
user = "blake";
|
||||
group = "blake";
|
||||
|
||||
dataDir = cfg.data_dir or (if cfg.mode == "server" then "/var/lib/syncthing" else "/home/blake/.local/state/syncthing");
|
||||
configDir = cfg.config_dir or (if cfg.mode == "server" then "/var/lib/syncthing/config" else "/home/blake/.config/syncthing");
|
||||
|
||||
# webui
|
||||
dataDir = "/home/blake/.local/state/syncthing";
|
||||
guiAddress = "0.0.0.0:2222";
|
||||
openDefaultPorts = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user