diff options
| author | Sean Whitton <spwhitton@spwhitton.name> | 2015-08-03 21:23:24 -0700 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-08-20 10:09:17 -0400 |
| commit | 826de8e624c9119f2908dbd17d876c6ed5632425 (patch) | |
| tree | f8b37252b2f054632c1acc48b655870573760942 /src | |
| parent | eb76708b2023f214829d979673cd5e2721ba5fc5 (diff) | |
LightDM.autoLogin property
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
(cherry picked from commit ef71b6dc6356bf5cb66bbb367bb3525df8742a53)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/LightDM.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Propellor/Property/LightDM.hs b/src/Propellor/Property/LightDM.hs new file mode 100644 index 00000000..b3756f6e --- /dev/null +++ b/src/Propellor/Property/LightDM.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE FlexibleInstances #-} + +module Propellor.Property.LightDM where + +import Propellor +import qualified Propellor.Property.File as File + +-- | Configures LightDM to skip the login screen and autologin as a user. +autoLogin :: User -> Property NoInfo +autoLogin (User u) = "/etc/lightdm/lightdm.conf" `File.containsConfPair` + ("SeatDefaults", "autologin-user", u) + `describe` "lightdm autologin" |
