summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nixos/polkit.nix3
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";