From b973c002e1bb24bf1e3e1254f9c2fe2944646312 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 8 Dec 2024 13:56:00 -0600 Subject: [PATCH] permissions --- flake.nix | 1 + homeManagerModules/home.nix | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index f4db3a9..4607310 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,7 @@ system.stateVersion = "${stateVersion}"; time.timeZone = "${timeZone}"; users.users.${user} = { + extraGroups = [ "wheel" ]; isNormalUser = true; openssh.authorizedKeys.keyFiles = [ /root/.ssh/authorized_keys ]; }; diff --git a/homeManagerModules/home.nix b/homeManagerModules/home.nix index 554ab1c..bceeaa3 100644 --- a/homeManagerModules/home.nix +++ b/homeManagerModules/home.nix @@ -18,9 +18,7 @@ in stateVersion = "24.05"; username = "${user}"; homeDirectory = "${homePath}"; - }; - - packages = [ + packages = [ (pkgs.writeShellScriptBin "nfs" '' sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname} '') @@ -29,6 +27,7 @@ in '') git ]; + }; systemd.user.startServices = "sd-switch"; } \ No newline at end of file