diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-15 14:47:51 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-15 14:47:51 +0200 |
commit | a2c820c6786ef8275213838ad0bdd77b970a4168 (patch) | |
tree | ca4a67b5220aa069aef67a7948f7e151933db9a9 /nixos/modules/services/x11/display-managers/slim.nix | |
parent | 3f2c0bf9bde96260276fe487e2f85b1858d61c47 (diff) | |
download | nixpkgs-a2c820c6786ef8275213838ad0bdd77b970a4168.tar nixpkgs-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.gz nixpkgs-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.bz2 nixpkgs-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.lz nixpkgs-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.xz nixpkgs-a2c820c6786ef8275213838ad0bdd77b970a4168.tar.zst nixpkgs-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/services/x11/display-managers/slim.nix')
-rw-r--r-- | nixos/modules/services/x11/display-managers/slim.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/nixos/modules/services/x11/display-managers/slim.nix b/nixos/modules/services/x11/display-managers/slim.nix index f9b81f8f040..7b2c52ca398 100644 --- a/nixos/modules/services/x11/display-managers/slim.nix +++ b/nixos/modules/services/x11/display-managers/slim.nix @@ -104,14 +104,12 @@ in execCmd = "exec ${pkgs.slim}/bin/slim"; }; - security.pam.services = - [ # Allow null passwords so that the user can login as root on the - # installation CD. - { name = "slim"; allowNullPassword = true; startSession = true; } - - # Allow slimlock to work. - { name = "slimlock"; } - ]; + # Allow null passwords so that the user can login as root on the + # installation CD. + security.pam.services.slim = { allowNullPassword = true; startSession = true; }; + + # Allow slimlock to work. + security.pam.services.slimlock = {}; environment.systemPackages = [ pkgs.slim ]; |