From 5b702be29f2cfb9ff876b6c7d8673526f9cfdfbe Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 Oct 2013 13:21:58 +0200 Subject: [PATCH] Add support for slimlock, slim's simple screen locker --- .../modules/services/x11/display-managers/slim.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/x11/display-managers/slim.nix b/nixos/modules/services/x11/display-managers/slim.nix index 9e8b9391f45..7ecad3224a9 100644 --- a/nixos/modules/services/x11/display-managers/slim.nix +++ b/nixos/modules/services/x11/display-managers/slim.nix @@ -104,9 +104,16 @@ in execCmd = "exec ${pkgs.slim}/bin/slim"; }; - # Allow null passwords so that the user can login as root on the - # installation CD. - security.pam.services = [ { name = "slim"; allowNullPassword = true; startSession = true; } ]; + 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"; } + ]; + + environment.systemPackages = [ pkgs.slim ]; };