diff --git a/nix-system-configs/modules/system/database.nix b/nix-system-configs/modules/system/database.nix index 2897cee..c6dd54e 100644 --- a/nix-system-configs/modules/system/database.nix +++ b/nix-system-configs/modules/system/database.nix @@ -134,19 +134,17 @@ in { }; # Provide the Valkey config file at /etc/valkey/6379.conf - environment.etc = lib.mkOverride 0 (lib.attrsets.union environment.etc { - "valkey/6379.conf" = { - text = '' - # Valkey configuration managed by NixOS - daemonize yes - pidfile /var/run/valkey_6379.pid - port 6379 - loglevel notice - logfile /var/log/valkey_6379.log - dir /var/valkey/6379 - ''; - }; - }); + environment.etc."valkey/6379.conf" = { + text = '' + # Valkey configuration managed by NixOS + daemonize yes + pidfile /var/run/valkey_6379.pid + port 6379 + loglevel notice + logfile /var/log/valkey_6379.log + dir /var/valkey/6379 + ''; + }; # Create data and log directories using systemd tmpfiles rules so paths exist on boot systemd.tmpfiles.rules = lib.mkForce [