summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--joeyconfig.hs1
-rw-r--r--src/Propellor/Property/SiteSpecific/JoeySites.hs20
2 files changed, 21 insertions, 0 deletions
diff --git a/joeyconfig.hs b/joeyconfig.hs
index ce4ddbee..5793a655 100644
--- a/joeyconfig.hs
+++ b/joeyconfig.hs
@@ -185,6 +185,7 @@ honeybee = host "honeybee.kitenet.net" $ props
`setSize` MegaBytes 8000
)
& JoeySites.cubieTruckOneWire
+ & Apt.installed ["i2c-tools"]
& Apt.installed ["firmware-brcm80211"]
-- Workaround for https://bugs.debian.org/844056
diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs
index ceee7bf3..ff2fab79 100644
--- a/src/Propellor/Property/SiteSpecific/JoeySites.hs
+++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs
@@ -920,6 +920,9 @@ homePower user hosts ctx sshkey = propertyList "home power" $ props
& Systemd.enabled setupservicename
`requires` setupserviceinstalled
`onChange` Systemd.started setupservicename
+ & Systemd.enabled watchdogservicename
+ `requires` watchdogserviceinstalled
+ `onChange` Systemd.started watchdogservicename
& Systemd.enabled pollerservicename
`requires` pollerserviceinstalled
`onChange` Systemd.started pollerservicename
@@ -991,6 +994,22 @@ homePower user hosts ctx sshkey = propertyList "home power" $ props
, "[Install]"
, "WantedBy=multi-user.target"
]
+ watchdogservicename = "homepower-watchdog"
+ watchdogservicefile = "/etc/systemd/system/" ++ watchdogservicename ++ ".service"
+ watchdogserviceinstalled = watchdogservicefile `File.hasContent`
+ [ "[Unit]"
+ , "Description=home power watchdog"
+ , ""
+ , "[Service]"
+ , "ExecStart=" ++ d ++ "/watchdog"
+ , "WorkingDirectory=" ++ d
+ , "User=root"
+ , "Group=root"
+ , "Restart=always"
+ , ""
+ , "[Install]"
+ , "WantedBy=multi-user.target"
+ ]
setupservicename = "homepower-setup"
setupservicefile = "/etc/systemd/system/" ++ setupservicename ++ ".service"
setupserviceinstalled = setupservicefile `File.hasContent`
@@ -1126,6 +1145,7 @@ laptopSoftware = Apt.installed
, "w3m", "sm", "weechat"
, "borgbackup", "wipe", "smartmontools", "libgfshare-bin"
, "units"
+ , "virtualbox", "qemu-kvm"
]
`requires` baseSoftware
`requires` devSoftware