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:
@@ -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
|
||||||
|
));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user