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:
Bruno BELANYI 2024-11-29 22:24:38 +00:00
parent fa732c88e4
commit 2a20ecbd1e

View file

@ -50,7 +50,7 @@ in
"/etc/machine-id" # Machine-specific ID "/etc/machine-id" # Machine-specific ID
"/etc/adjtime" # Clock drift factor and offsets "/etc/adjtime" # Clock drift factor and offsets
] ]
++ cfg.files ++ lib.unique cfg.files
; ;
directories = [ directories = [
@ -59,7 +59,7 @@ in
"/var/lib/nixos" # UID/GID maps "/var/lib/nixos" # UID/GID maps
"/var/lib/systemd/coredump" # Coredumps "/var/lib/systemd/coredump" # Coredumps
] ]
++ cfg.directories ++ lib.unique cfg.directories
; ;
}; };
}; };