mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-27 12:41:02 +01:00
programs.khal
moved highlight_event_days where appropriated and added tests
This commit is contained in:
parent
d895a77448
commit
4a26e21030
5 changed files with 36 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ let
|
|||
path = mkOption {
|
||||
type = types.str;
|
||||
default = "${cfg.basePath}/${name}";
|
||||
defaultText = "‹accounts.contact.basePath›/‹name›";
|
||||
defaultText = "‹accounts.calendar.basePath›/‹name›";
|
||||
description = "The path of the storage.";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue