diff --git a/hosts/laptop-server/config/users.nix b/hosts/laptop-server/config/users.nix index 7daeaa5..9b55e8d 100644 --- a/hosts/laptop-server/config/users.nix +++ b/hosts/laptop-server/config/users.nix @@ -15,8 +15,15 @@ "networkmanager" # Can manage networking "wheel" # Can use sudo ]; - + hashedPassword = secrets.passwords.users.ty; }; }; -} \ No newline at end of file + + # Enable polkit user authentication + security.polkit.enable = true; + security.pam.services.systemd-run0 = { + setEnvironment = true; + pamMount = false; + }; # https://github.com/NixOS/nixpkgs/issues/361592#issuecomment-2516342739 +} diff --git a/hosts/laptop/config/users.nix b/hosts/laptop/config/users.nix index 4e805ac..9b55e8d 100644 --- a/hosts/laptop/config/users.nix +++ b/hosts/laptop/config/users.nix @@ -15,11 +15,15 @@ "networkmanager" # Can manage networking "wheel" # Can use sudo ]; - + hashedPassword = secrets.passwords.users.ty; }; }; # Enable polkit user authentication security.polkit.enable = true; -} \ No newline at end of file + security.pam.services.systemd-run0 = { + setEnvironment = true; + pamMount = false; + }; # https://github.com/NixOS/nixpkgs/issues/361592#issuecomment-2516342739 +} diff --git a/secrets.example.nix b/secrets.example.nix index 3cabf2a..76edd1d 100644 --- a/secrets.example.nix +++ b/secrets.example.nix @@ -25,4 +25,4 @@ # The hashed /etc/shadow password to use for the main user ty users.ty = null; }; -} \ No newline at end of file +}