summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/LightDM.hs
blob: bc5ef22aa3c960cc0b9f100284fc80c82bc5584b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE FlexibleInstances #-}

-- | Maintainer: Sean Whitton <spwhitton@spwhitton.name>

module Propellor.Property.LightDM where

import Propellor.Base
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"