diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-11-02 13:30:21 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-11-02 13:30:21 -0600 |
| commit | 3eba54a61b4bd9e27610c8c8b8cf244ac8f09855 (patch) | |
| tree | 2496b8f107d417729ac741a9e7e134eef7a1475c | |
| parent | d4b149710587326bc59b66b92efeafbb34c5baff (diff) | |
| download | nixos-3eba54a61b4bd9e27610c8c8b8cf244ac8f09855.tar.xz nixos-3eba54a61b4bd9e27610c8c8b8cf244ac8f09855.zip | |
register login shells in /etc/shells for polkit
| -rw-r--r-- | nixos/polkit.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/polkit.nix b/nixos/polkit.nix index d78130a..101b2e0 100644 --- a/nixos/polkit.nix +++ b/nixos/polkit.nix @@ -31,6 +31,9 @@ in { # Gnome environment.systemPackages = lib.mkIf cfg._gnome.enable [ cfg._gnome.package polkit_gnome-autostart ]; + # Register shells in /etc/shells. polkit refuses to authenticate a user whose login shell isn't listed there + environment.shells = with pkgs; [ bashInteractive zsh ]; + # Optional rules environment.etc = let pkRulesD = "polkit-1/rules.d"; |
