From f7922cb328d2cdaa13893ad35fac96108a9fa937 Mon Sep 17 00:00:00 2001 From: pcpthm Date: Fri, 26 Aug 2022 15:53:59 +0900 Subject: nixos/nix-daemon: Add missing parenthesis When `nix.registry..flake` option is used, additional attributes of the flake were not written to the flake registry file because of a missing parenthesis. --- nixos/modules/services/misc/nix-daemon.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index 2738d2ee6cd0a..965da197f30f4 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -430,13 +430,14 @@ in }; config = { from = mkDefault { type = "indirect"; id = name; }; - to = mkIf (config.flake != null) (mkDefault + to = mkIf (config.flake != null) (mkDefault ( { type = "path"; path = config.flake.outPath; } // filterAttrs - (n: _: n == "lastModified" || n == "rev" || n == "revCount" || n == "narHash") - config.flake); + (n: _: n == "lastModified" || n == "rev" || n == "revCount" || n == "narHash") + config.flake + )); }; } )); -- cgit 1.4.1