[NixOS] Try to fix syncthings priveleges issues

This commit is contained in:
Ivan Malison 2023-08-05 19:31:34 -06:00
parent 7fc65965c5
commit f289424c26
3 changed files with 5 additions and 2 deletions

View File

@ -55,6 +55,8 @@ inputs: { pkgs, config, ... }: {
services.status-notifier-watcher.enable = true; services.status-notifier-watcher.enable = true;
services.autorandr.enable = true;
services.random-background = { services.random-background = {
enable = true; enable = true;
display = "fill"; display = "fill";

View File

@ -29,6 +29,7 @@ in
sync = { sync = {
path = "~/sync"; path = "~/sync";
devices = allDevices; devices = allDevices;
copyOwnershipFromParent = true;
}; };
}; };
options = { options = {

View File

@ -37,7 +37,7 @@
]; ];
in { in {
syncthing = { syncthing = {
extraGroups = [ "syncthing" ]; extraGroups = [ "syncthing" "wheel" ];
home = "/var/lib/syncthing"; home = "/var/lib/syncthing";
createHome = true; createHome = true;
}; };
@ -67,5 +67,5 @@
}; };
}; };
nix.settings.trusted-users = [ "root" "imalison" "kat" "dean" ]; nix.settings.trusted-users = [ "root" "imalison" "kat" "dean" "alex" ];
} }