summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/LightDM.hs
diff options
context:
space:
mode:
authorJoey Hess2017-07-05 14:13:51 -0400
committerJoey Hess2017-07-05 14:14:15 -0400
commit071adf44e85219ce4d4b8b096c9fd5efaaa6997a (patch)
treed9289cfb53d52245d513512634a6094273222fee /src/Propellor/Property/LightDM.hs
parente77e60604ac908e0895af202e83a47096d60b059 (diff)
LightDM.autoLogin: Make it require LightDM.installed
(minor API change as the type changed)
Diffstat (limited to 'src/Propellor/Property/LightDM.hs')
-rw-r--r--src/Propellor/Property/LightDM.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Propellor/Property/LightDM.hs b/src/Propellor/Property/LightDM.hs
index 339fa9a3..69538d89 100644
--- a/src/Propellor/Property/LightDM.hs
+++ b/src/Propellor/Property/LightDM.hs
@@ -10,7 +10,8 @@ installed :: Property DebianLike
installed = Apt.installed ["lightdm"]
-- | Configures LightDM to skip the login screen and autologin as a user.
-autoLogin :: User -> Property UnixLike
+autoLogin :: User -> Property DebianLike
autoLogin (User u) = "/etc/lightdm/lightdm.conf" `ConfFile.containsIniSetting`
("SeatDefaults", "autologin-user", u)
`describe` "lightdm autologin"
+ `requires` installed