summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/LightDM.hs
diff options
context:
space:
mode:
authorJoey Hess2015-08-20 10:31:27 -0400
committerJoey Hess2015-08-20 10:31:27 -0400
commit565d3536da40f098d3931bd7fd2bcfa2625a90d1 (patch)
treed8507539873b0c312ada94d822ded4d54bf7ac25 /src/Propellor/Property/LightDM.hs
parent9ec6bbbb3bbfea6b184053f3115bc7749688ce45 (diff)
parent544a3111dd805fdcaddabe06a7d5c841e15faac5 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/LightDM.hs')
-rw-r--r--src/Propellor/Property/LightDM.hs12
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..b779ba4d
--- /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.ConfFile as ConfFile
+
+-- | Configures LightDM to skip the login screen and autologin as a user.
+autoLogin :: User -> Property NoInfo
+autoLogin (User u) = "/etc/lightdm/lightdm.conf" `ConfFile.containsIniSetting`
+ ("SeatDefaults", "autologin-user", u)
+ `describe` "lightdm autologin"