diff --git a/flake.nix b/flake.nix index 3185f43..4c1a35a 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 16 current 2025-10-05 21:36:22 25.05.20251001.5b5be50 6.12.49 * +# generation: 18 current 2025-10-05 21:47:39 25.05.20251001.5b5be50 6.12.49 * { description = "blakes nix config"; inputs = { diff --git a/hosts/snowbelle/configuration.nix b/hosts/snowbelle/configuration.nix index f70b45e..eca5837 100644 --- a/hosts/snowbelle/configuration.nix +++ b/hosts/snowbelle/configuration.nix @@ -15,7 +15,7 @@ sops.enable = true; docker.enable = true; syncthing.enable = true; - syncthing.mode = "server"; +# syncthing.mode = "server"; tailscale.enable = true; nvidia.enable = true; }; diff --git a/modules/system/syncthing.nix b/modules/system/syncthing.nix index 848bd94..447e525 100644 --- a/modules/system/syncthing.nix +++ b/modules/system/syncthing.nix @@ -7,32 +7,32 @@ in options.modules.system.syncthing = { enable = lib.mkEnableOption "enables syncthing"; - mode = lib.mkOption { - type = lib.types.enum [ "server" "client" ]; - default = "client"; - description = "whether syncthing should run as a client (user) or server (system-wide)."; - }; - - data_dir = lib.mkOption { - type = lib.types.str; - default = if cfg.mode == "server" - then "/var/lib/syncthing" - else "/home/blake/.local/state/syncthing"; - description = "optional override for syncthing data directory."; - }; +# mode = lib.mkOption { +# type = lib.types.enum [ "server" "client" ]; +# default = "client"; +# description = "whether syncthing should run as a client (user) or server (system-wide)."; +# }; +# +# data_dir = lib.mkOption { +# type = lib.types.str; +# default = if cfg.mode == "server" +# then "/var/lib/syncthing" +# else "/home/blake/.local/state/syncthing"; +# description = "optional override for syncthing data directory."; +# }; }; config = lib.mkIf cfg.enable { - systemd.tmpfiles.rules = lib.optionals (cfg.mode == "server") ["d /var/lib/syncthing 0775 blake blake -"]; +# systemd.tmpfiles.rules = lib.optionals (cfg.mode == "server") ["d /var/lib/syncthing 0775 blake blake -"]; services.syncthing = { enable = true; - user = if cfg.mode == "server" then "blake" else "blake"; - group = if cfg.mode == "server" then "blake" else "blake"; - dataDir = cfg.data_dir; +# user = "blake"; +# group = "blake"; +# dataDir = "/var/lib/syncthing"; guiAddress = "0.0.0.0:2222"; - openDefaultPorts = true; +# openDefaultPorts = true; }; }; }