summary refs log tree commit diff
path: root/nixos/modules/security/polkit.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-15 14:47:51 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-15 14:47:51 +0200
commita2c820c6786ef8275213838ad0bdd77b970a4168 (patch)
treeca4a67b5220aa069aef67a7948f7e151933db9a9 /nixos/modules/security/polkit.nix
parent3f2c0bf9bde96260276fe487e2f85b1858d61c47 (diff)
downloadnixlib-a2c820c6786ef8275213838ad0bdd77b970a4168.tar
nixlib-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.gz
nixlib-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.bz2
nixlib-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.lz
nixlib-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.xz
nixlib-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.zst
nixlib-a2c820c6786ef8275213838ad0bdd77b970a4168.zip
Turn security.pam.services into an attribute set
That is, you can say

  security.pam.services.sshd = { options... };

instead of

  security.pam.services = [ { name = "sshd"; options... } ];

making it easier to override PAM settings from other modules.
Diffstat (limited to 'nixos/modules/security/polkit.nix')
-rw-r--r--nixos/modules/security/polkit.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/polkit.nix b/nixos/modules/security/polkit.nix
index b9b32496a368..8b04f4043bc7 100644
--- a/nixos/modules/security/polkit.nix
+++ b/nixos/modules/security/polkit.nix
@@ -94,7 +94,7 @@ in
 
     services.dbus.packages = [ pkgs.polkit ];
 
-    security.pam.services = [ { name = "polkit-1"; } ];
+    security.pam.services.polkit-1 = {};
 
     security.setuidPrograms = [ "pkexec" ];