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:
+8
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user