From 2a20ecbd1e4282ed6d21b21936e3b5a17509ca3e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 29 Nov 2024 22:24:38 +0000 Subject: [PATCH] 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). --- modules/nixos/system/persist/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/system/persist/default.nix b/modules/nixos/system/persist/default.nix index e0a1eeb..212f902 100644 --- a/modules/nixos/system/persist/default.nix +++ b/modules/nixos/system/persist/default.nix @@ -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 ; }; };