From 854610384e41dc09f96513141f88dbf2f8c5ad4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 21 Sep 2020 14:48:36 +0200 Subject: [PATCH] feat: add calcurse --- configs/calcurse.nix | 36 ++++++++++++++++++++++++++++++++++++ configs/default.nix | 1 + 2 files changed, 37 insertions(+) create mode 100644 configs/calcurse.nix 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