diff options
Diffstat (limited to 'host/automatix.nix')
-rw-r--r-- | host/automatix.nix | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/host/automatix.nix b/host/automatix.nix index d95f12e..7c6edd0 100644 --- a/host/automatix.nix +++ b/host/automatix.nix @@ -12,10 +12,11 @@ boot.loader.grub = { enable = true; - version = 2; device = "/dev/sda"; }; + nix.settings.allowed-users = [ "public" ]; + networking = { hostName = "automatix"; @@ -53,4 +54,32 @@ openDefaultPorts = true; }; }; + + systemd.timers."generate-ical-of-org-agenda" = { + enable = true; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "daily"; + Persistent = true; + Unit = "generate-ical-of-org-agenda.service"; + }; + }; + + systemd.services."generate-ical-of-org-agenda" = { + enable = true; + script = "${pkgs.emacs-nox}/bin/emacs -batch -l /var/lib/syncthing/org-cal-export.el"; + serviceConfig = { + Type = "oneshot"; + User = "syncthing"; + }; + }; + + users.users.syncthing.shell = pkgs.bash; + + security.acme = { + acceptTerms = true; + defaults.email = "key@kummerlaender.eu"; + }; + + system.stateVersion = "18.09"; } |