persistence: Copy directories option type from upstream

This commit is contained in:
SebastianStork 2026-01-10 17:50:01 +01:00
parent 809bf48e9d
commit b7db8d2fd8
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -13,7 +13,7 @@ in
options.custom.persistence = {
enable = lib.mkEnableOption "";
directories = lib.mkOption {
type = lib.types.listOf lib.types.path;
type = lib.types.listOf (lib.types.coercedTo lib.types.str (d: { directory = d; }) lib.types.attrs);
default = [ ];
};
};