From 6b36ea4418cc6811da43eb1e1b41ed97dad534b3 Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Fri, 3 Jan 2025 21:38:24 -0700 Subject: [PATCH] Fix run0 --- hosts/laptop-server/config/users.nix | 11 +++++++++-- hosts/laptop/config/users.nix | 8 ++++++-- secrets.example.nix | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) 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 +}