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