From 75b99d9b9948d8a08301389cfc316c38246822bb Mon Sep 17 00:00:00 2001 From: Anton Mosich Date: Sun, 6 Aug 2023 17:27:59 +0200 Subject: [PATCH] khal: uncomment locale config While the locale options were declared, the weren't used in the generation of the config file, because the locale submodule missed a default, which failed the tests. I added an empty attribute set as a default, which fixes the test, and works with the defaults in the submodule options as expected. --- modules/programs/khal.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/programs/khal.nix b/modules/programs/khal.nix index 42720620ee92..56a7d389f8a2 100644 --- a/modules/programs/khal.nix +++ b/modules/programs/khal.nix @@ -152,6 +152,7 @@ in { description = '' khal locale settings. ''; + default = { }; }; }; @@ -161,7 +162,7 @@ in { xdg.configFile."khal/config".text = concatStringsSep "\n" ([ "[calendars]" ] ++ mapAttrsToList genCalendarStr khalAccounts ++ [ (generators.toINI { } { - # locale = definedAttrs (cfg.locale // { _module = null; }); + locale = definedAttrs (cfg.locale // { _module = null; }); default = optionalAttrs (!isNull primaryAccount) { highlight_event_days = true;