Merge pull request #270704 from Avaq/avaq/vdirsync-fix-statuspath
nixos/vdirsyncer: fix config.statusPath option
This commit is contained in:
commit
feed24c54b
@ -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
|
||||
) // (
|
||||
|
Loading…
Reference in New Issue
Block a user