diff options
author | Adrian Kummerländer | 2024-03-25 20:07:55 +0100 |
---|---|---|
committer | Adrian Kummerländer | 2024-03-25 20:07:55 +0100 |
commit | f60b69a27da4545455d3b739d655502d2339bb3d (patch) | |
tree | 1c6439b9886a0b651c828782d26456339a1b98dc /host | |
parent | e35c3d18114d6bbae281010d1eb0fece2f50ff42 (diff) | |
download | nixos_system-f60b69a27da4545455d3b739d655502d2339bb3d.tar nixos_system-f60b69a27da4545455d3b739d655502d2339bb3d.tar.gz nixos_system-f60b69a27da4545455d3b739d655502d2339bb3d.tar.bz2 nixos_system-f60b69a27da4545455d3b739d655502d2339bb3d.tar.lz nixos_system-f60b69a27da4545455d3b739d655502d2339bb3d.tar.xz nixos_system-f60b69a27da4545455d3b739d655502d2339bb3d.tar.zst nixos_system-f60b69a27da4545455d3b739d655502d2339bb3d.zip |
automatix: Automatically generate ical of org agenda
Diffstat (limited to 'host')
-rw-r--r-- | host/automatix.nix | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/host/automatix.nix b/host/automatix.nix index 1999324..7c6edd0 100644 --- a/host/automatix.nix +++ b/host/automatix.nix @@ -12,11 +12,10 @@ boot.loader.grub = { enable = true; - version = 2; device = "/dev/sda"; }; - nix.allowedUsers = [ "public" ]; + nix.settings.allowed-users = [ "public" ]; networking = { hostName = "automatix"; @@ -56,9 +55,30 @@ }; }; + 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; - email = "key@kummerlaender.eu"; + defaults.email = "key@kummerlaender.eu"; }; system.stateVersion = "18.09"; |