diff --git a/configs/calcurse.nix b/configs/calcurse.nix new file mode 100644 index 0000000..9c03904 --- /dev/null +++ b/configs/calcurse.nix @@ -0,0 +1,36 @@ +{ pkgs, lib, ... }: +{ + environment.systemPackages = [ pkgs.calcurse ]; + + home-manager.users.me = { + home.file = { + ".calcurse/conf".text = '' + appearance.calendarview=monthly + appearance.layout=1 + daemon.enable=no + daemon.log=no + format.inputdate=4 + format.outputdate=%F + general.confirmquit=no + general.confirmdelete=yes + general.firstdayofweek=monday + appearance.theme=default on default + ''; + ".calcurse/caldav/config".text = lib.generators.toINI {} { + General = { + Binary = "${pkgs.calcurse}/bin/calcurse"; + Hostname = "posteo.de:8443"; + Path = "/calendars/kieran.meinhardt/default/"; + InsecureSSL = "No"; + DryRun = "No"; + Verbose = "Yes"; + }; + Auth = { + Username = "kieran.meinhardt@posteo.net"; + Password = lib.strings.fileContents ; + }; + }; + }; + }; + +} diff --git a/configs/default.nix b/configs/default.nix index 1fec88d..91f5b44 100644 --- a/configs/default.nix +++ b/configs/default.nix @@ -9,6 +9,7 @@ in { ./bluetooth.nix ./ccc.nix ./kleiter.nix + ./calcurse.nix ./chromium.nix ./cloud.nix ./compton.nix