nixos: system: persist: filter unique entries
To make sure that different modules configuring the same values don't run into any issues (e.g: download clients sharing a download directory).
This commit is contained in:
parent
fa732c88e4
commit
2a20ecbd1e
|
@ -50,7 +50,7 @@ in
|
|||
"/etc/machine-id" # Machine-specific ID
|
||||
"/etc/adjtime" # Clock drift factor and offsets
|
||||
]
|
||||
++ cfg.files
|
||||
++ lib.unique cfg.files
|
||||
;
|
||||
|
||||
directories = [
|
||||
|
@ -59,7 +59,7 @@ in
|
|||
"/var/lib/nixos" # UID/GID maps
|
||||
"/var/lib/systemd/coredump" # Coredumps
|
||||
]
|
||||
++ cfg.directories
|
||||
++ lib.unique cfg.directories
|
||||
;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue