lib/default.nix: remove inefficient second copy (#7221)

Using ./. forces Nix to copy the flake to the store a second time.
Using bulitins.path like this, forcing the name to be "source", reduces the extraneous copy.
This commit is contained in:
Graham Christensen
2025-06-06 10:07:34 -04:00
committed by GitHub
parent 91287a0e9d
commit 76e9c6e14a

View File

@@ -20,7 +20,14 @@
configuration =
{ ... }:
{
imports = modules ++ [ { programs.home-manager.path = "${../.}"; } ];
imports = modules ++ [
{
programs.home-manager.path = builtins.path {
path = ../.;
name = "source";
};
}
];
nixpkgs = {
config = lib.mkDefault pkgs.config;