Merge pull request #188362 from pcpthm/fix-nix-registry-flake

nixos/nix-daemon: Add missing parentheses
This commit is contained in:
Christian Kögler 2022-08-27 22:33:17 +02:00 committed by GitHub
commit 0b6ffe6511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
));
};
}
));