nixos/nix-daemon: Add missing parenthesis

When `nix.registry.<name>.flake` option is used, additional attributes of the flake were not written to the flake registry file because of a missing parenthesis.
This commit is contained in:
pcpthm
2022-08-26 15:53:59 +09:00
parent d50c2c2f89
commit f7922cb328

View File

@@ -430,13 +430,14 @@ in
}; };
config = { config = {
from = mkDefault { type = "indirect"; id = name; }; from = mkDefault { type = "indirect"; id = name; };
to = mkIf (config.flake != null) (mkDefault to = mkIf (config.flake != null) (mkDefault (
{ {
type = "path"; type = "path";
path = config.flake.outPath; path = config.flake.outPath;
} // filterAttrs } // filterAttrs
(n: _: n == "lastModified" || n == "rev" || n == "revCount" || n == "narHash") (n: _: n == "lastModified" || n == "rev" || n == "revCount" || n == "narHash")
config.flake); config.flake
));
}; };
} }
)); ));