From 042e6da6b3b357b2b28be766fbc2e9b8ee13806d Mon Sep 17 00:00:00 2001 From: blake Date: Sun, 5 Oct 2025 15:21:40 -0500 Subject: [PATCH] 63 current 2025-10-05 15:21:07 25.05.20251001.5b5be50 6.12.49 * --- flake.nix | 2 +- modules/system/syncthing.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 11a3100..287ee50 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 62 current 2025-10-05 15:15:42 25.05.20251001.5b5be50 6.12.49 * +# generation: 63 current 2025-10-05 15:21:07 25.05.20251001.5b5be50 6.12.49 * { description = "blakes nix config"; inputs = { diff --git a/modules/system/syncthing.nix b/modules/system/syncthing.nix index e66d787..6e2e245 100644 --- a/modules/system/syncthing.nix +++ b/modules/system/syncthing.nix @@ -23,6 +23,9 @@ in }; config = lib.mkIf cfg.enable { + + systemd.tmpfiles.rules = lib.optionals (cfg.mode == "server") ["d /var/lib/syncthing 0775 root blake -"]; + services.syncthing = { enable = true; user = if cfg.mode == "server" then "root" else "blake";