blob: b3756f6e95cfb0c2f111c26b4e25b024600069f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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"
|