summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJelmer Vernooij2015-12-27 15:21:01 +0000
committerJoey Hess2015-12-29 11:37:21 -0400
commitc01b693e655ce146e8be281b2dda93a64a7d4bca (patch)
treead53aa504646a14014c1d2f6969b528accfb5b93 /src/Propellor
parent0f720362b1c18a3824e52961e9f825d8b8cb33db (diff)
Add convenience .installed for lightdm.
Signed-off-by: Jelmer Vernooij <jelmer@jelmer.uk>
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/LightDM.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Propellor/Property/LightDM.hs b/src/Propellor/Property/LightDM.hs
index bc5ef22a..75e3b19a 100644
--- a/src/Propellor/Property/LightDM.hs
+++ b/src/Propellor/Property/LightDM.hs
@@ -5,8 +5,12 @@
module Propellor.Property.LightDM where
import Propellor.Base
+import qualified Propellor.Property.Apt as Apt
import qualified Propellor.Property.ConfFile as ConfFile
+installed :: Property NoInfo
+installed = Apt.installed ["lightdm"]
+
-- | 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`