nixos/vdirsyncer: fix config.statusPath option

The `services.vdirsyncer.jobs.<name>.config.statusPath` option was
making the appropriate changes to the systemd service options, but not
to the vdirsyncer config file.
This commit is contained in:
Aldwin Vlasblom
2023-11-28 18:54:49 +01:00
parent 6fc4c1c40c
commit 8efe6a71cb
@@ -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
) // (