diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-24 12:31:02 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-24 12:31:02 +0200 |
commit | 2d9258da6705182388fc8e6472a49d2b0fee7b90 (patch) | |
tree | 678a24222d5666e69569dfb6767b731000a1efe8 /modules/services/x11/display-managers/auto.nix | |
parent | 224c825a36bf8fb161c25845b1cc0bae6866f075 (diff) | |
download | nixpkgs-2d9258da6705182388fc8e6472a49d2b0fee7b90.tar nixpkgs-2d9258da6705182388fc8e6472a49d2b0fee7b90.tar.gz nixpkgs-2d9258da6705182388fc8e6472a49d2b0fee7b90.tar.bz2 nixpkgs-2d9258da6705182388fc8e6472a49d2b0fee7b90.tar.lz nixpkgs-2d9258da6705182388fc8e6472a49d2b0fee7b90.tar.xz nixpkgs-2d9258da6705182388fc8e6472a49d2b0fee7b90.tar.zst nixpkgs-2d9258da6705182388fc8e6472a49d2b0fee7b90.zip |
auto.nix: Use SLiM to implement auto-logins
Diffstat (limited to 'modules/services/x11/display-managers/auto.nix')
-rw-r--r-- | modules/services/x11/display-managers/auto.nix | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/modules/services/x11/display-managers/auto.nix b/modules/services/x11/display-managers/auto.nix index cccc6e62a15..33d97e0e07a 100644 --- a/modules/services/x11/display-managers/auto.nix +++ b/modules/services/x11/display-managers/auto.nix @@ -41,16 +41,11 @@ in config = mkIf cfg.enable { - services.xserver.displayManager.slim.enable = false; - - services.xserver.displayManager.job = - { execCmd = - '' - exec ${pkgs.xorg.xinit}/bin/xinit \ - ${pkgs.su}/bin/su -c ${dmcfg.session.script} ${cfg.user} \ - -- ${dmcfg.xserverBin} ${dmcfg.xserverArgs} - ''; - }; + services.xserver.displayManager.slim = { + enable = true; + autoLogin = true; + defaultUser = cfg.user; + }; }; |