1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36: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:
Graham Christensen 2025-06-06 10:07:34 -04:00 committed by GitHub
parent 91287a0e9d
commit 76e9c6e14a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;