mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
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:
parent
91287a0e9d
commit
76e9c6e14a
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue