diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-07-05 17:29:19 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-07-05 17:29:19 -0400 |
| commit | 9648e1797f7f08b3465f6c301404ee0555c20881 (patch) | |
| tree | 9273d7a1b1e6ae2223aac05bbb6f8afc162845ba /joeyconfig.hs | |
| parent | 9d6c50fff28ed5ba7da7fdd2989c7773e357a3c3 (diff) | |
| parent | 3451ca8beeb58a3bdd864cd1009ba9f0e314b442 (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'joeyconfig.hs')
| -rw-r--r-- | joeyconfig.hs | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/joeyconfig.hs b/joeyconfig.hs index 1befeb1a..1be4ff14 100644 --- a/joeyconfig.hs +++ b/joeyconfig.hs @@ -21,6 +21,8 @@ import qualified Propellor.Property.Git as Git import qualified Propellor.Property.Postfix as Postfix import qualified Propellor.Property.Apache as Apache import qualified Propellor.Property.LetsEncrypt as LetsEncrypt +import qualified Propellor.Property.LightDM as LightDM +import qualified Propellor.Property.XFCE as XFCE import qualified Propellor.Property.Grub as Grub import qualified Propellor.Property.Obnam as Obnam import qualified Propellor.Property.Gpg as Gpg @@ -102,18 +104,27 @@ darkstar = host "darkstar.kitenet.net" $ props `setFlag` BootFlag , partition EXT4 `mountedAt` "/" `mountOpt` errorReadonly + `addFreeSpace` MegaBytes 256 , swapPartition (MegaBytes 256) ] + `before` File.ownerGroup "/srv/propellor-disk.img" (User "joey") (Group "joey") demo :: Host -demo = host "demo.kitenet.net" $ props +demo = host "demo" $ props & osDebian Unstable X86_64 - & Hostname.setTo "demo" & Apt.installed ["linux-image-amd64"] - & User "root" `User.hasInsecurePassword` "root" & bootstrappedFrom GitRepoOutsideChroot - & Apt.installedMin ["task-desktop"] - & Apt.installed ["xfce4", "lightdm", "xfce4-terminal", "firefox"] + & User.accountFor user + & root `User.hasInsecurePassword` "debian" + & user `User.hasInsecurePassword` "debian" + & XFCE.installedMin + & XFCE.networkManager + & XFCE.defaultPanelFor user File.OverwriteExisting + & LightDM.autoLogin user + & Apt.installed ["firefox"] + where + user = User "user" + root = User "root" gnu :: Host gnu = host "gnu.kitenet.net" $ props |
