summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/networking/vdirsyncer.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/networking/vdirsyncer.nix')
-rw-r--r--nixos/modules/services/networking/vdirsyncer.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/vdirsyncer.nix b/nixos/modules/services/networking/vdirsyncer.nix
index 6a069943434d..165dc70f0876 100644
--- a/nixos/modules/services/networking/vdirsyncer.nix
+++ b/nixos/modules/services/networking/vdirsyncer.nix
@@ -20,9 +20,11 @@ let
else
pkgs.writeText "vdirsyncer-${name}.conf" (toIniJson (
{
- general = cfg'.config.general // (lib.optionalAttrs (cfg'.config.statusPath == null) {
- status_path = "/var/lib/vdirsyncer/${name}";
- });
+ general = cfg'.config.general // {
+ status_path = if cfg'.config.statusPath == null
+ then "/var/lib/vdirsyncer/${name}"
+ else cfg'.config.statusPath;
+ };
} // (
mapAttrs' (name: nameValuePair "pair ${name}") cfg'.config.pairs
) // (