summaryrefslogtreecommitdiff
path: root/Host/clam.hs
blob: 4241222d1d9174149aae4019e1e4563b49f4ca50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Property
import qualified Property.Apt as Apt
import qualified Property.Ssh as Ssh
import qualified Property.User as User
import qualified Property.GitHome as GitHome

main = defaultMain
	[ Apt.stdSourcesList Apt.Unstable `onChange` Apt.upgrade
	, Apt.installed ["etckeeper"]
	, Apt.installed ["ssh"]
	, Apt.installed ["git", "myrepos"]
	, GitHome.installed "root"
	, check (Ssh.hasAuthorizedKeys "root") $
		Ssh.passwordAuthentication False
	, User.nonsystem "joey"
	, fileHasContent "/etc/sudoers" ["joey ALL=(ALL:ALL) ALL"]
	, GitHome.installed "joey"
	, Apt.removed ["exim4"] `onChange` Apt.autoRemove
	, Apt.installed ["tor"]
	]