59 current 2025-10-05 14:51:59 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# flake for blakes nixos config
|
# flake for blakes nixos config
|
||||||
# define new devices in outputs
|
# define new devices in outputs
|
||||||
# generation: 58 current 2025-10-05 14:46:22 25.05.20251001.5b5be50 6.12.49 *
|
# generation: 59 current 2025-10-05 14:51:59 25.05.20251001.5b5be50 6.12.49 *
|
||||||
{
|
{
|
||||||
description = "blakes nix config";
|
description = "blakes nix config";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
@@ -20,14 +20,6 @@ in
|
|||||||
else "/home/blake/.local/state/syncthing";
|
else "/home/blake/.local/state/syncthing";
|
||||||
description = "optional override for syncthing data directory.";
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
@@ -35,10 +27,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
user = "root";
|
user = "root";
|
||||||
group = "blake";
|
group = "blake";
|
||||||
#dataDir = "/home/blake/.local/state/syncthing";
|
|
||||||
#configDir = "/home/blake/.local/state/syncthing";
|
|
||||||
dataDir = cfg.data_dir;
|
dataDir = cfg.data_dir;
|
||||||
configDir = cfg.config_dir;
|
|
||||||
guiAddress = "0.0.0.0:2222";
|
guiAddress = "0.0.0.0:2222";
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user