1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 15:41:02 +01:00

programs.khal

moved highlight_event_days where appropriated and added tests
This commit is contained in:
Janik 2023-07-04 12:14:47 +02:00 committed by GitHub
parent d895a77448
commit 4a26e21030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 2 deletions

View file

@ -25,7 +25,6 @@ let
genCalendarStr = name: value:
concatStringsSep "\n" ([
"[[${name}]]"
"highlight_event_days = True"
"path = ${
value.local.path + "/"
+ (optionalString (value.khal.type == "discover") value.khal.glob)
@ -158,6 +157,7 @@ in {
# locale = definedAttrs (cfg.locale // { _module = null; });
default = optionalAttrs (!isNull primaryAccount) {
highlight_event_days = true;
default_calendar = if isNull primaryAccount.primaryCollection then
primaryAccount.name
else