From 3a058594b4bc45e090ef48e63550103c07dc228d Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 31 Dec 2024 17:05:11 +0200 Subject: [PATCH] Hopefully fixed syncthing issue --- nixosModules/syncthing.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixosModules/syncthing.nix b/nixosModules/syncthing.nix index 27f0a27..dd90018 100644 --- a/nixosModules/syncthing.nix +++ b/nixosModules/syncthing.nix @@ -26,13 +26,17 @@ }; users.users.syncthing = { - isNormalUser = true; - isSystemUser = lib.mkForce false; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren" ]; }; + # Make sure the dir is created with the correct perms + # Can't use users to do it due to being a system user + systemd.tmpfiles.rules = [ + "d /home/syncthing 0700 syncthing syncthing" + ]; + services.syncthing = { enable = true; group = "syncthing";