From f289424c26f313e7f56d81a810f237b3bc437bfa Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 5 Aug 2023 19:31:34 -0600 Subject: [PATCH] [NixOS] Try to fix syncthings priveleges issues --- nixos/home-manager.nix | 2 ++ nixos/syncthing.nix | 1 + nixos/users.nix | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index 27aa7281..07378d12 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -55,6 +55,8 @@ inputs: { pkgs, config, ... }: { services.status-notifier-watcher.enable = true; + services.autorandr.enable = true; + services.random-background = { enable = true; display = "fill"; diff --git a/nixos/syncthing.nix b/nixos/syncthing.nix index f7731641..c961845c 100644 --- a/nixos/syncthing.nix +++ b/nixos/syncthing.nix @@ -29,6 +29,7 @@ in sync = { path = "~/sync"; devices = allDevices; + copyOwnershipFromParent = true; }; }; options = { diff --git a/nixos/users.nix b/nixos/users.nix index 4e85b8d4..7492b3dd 100644 --- a/nixos/users.nix +++ b/nixos/users.nix @@ -37,7 +37,7 @@ ]; in { syncthing = { - extraGroups = [ "syncthing" ]; + extraGroups = [ "syncthing" "wheel" ]; home = "/var/lib/syncthing"; createHome = true; }; @@ -67,5 +67,5 @@ }; }; - nix.settings.trusted-users = [ "root" "imalison" "kat" "dean" ]; + nix.settings.trusted-users = [ "root" "imalison" "kat" "dean" "alex" ]; }