Hopefully fixed syncthing issue

This commit is contained in:
2024-12-31 17:05:11 +02:00
parent 271c54674f
commit 3a058594b4

View File

@@ -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";