flake: set source path in home-manager tool
This makes sure that a NIX_PATH entry is added for use by non-flake commands, for example `home-manager uninstall`. Fixes #3948
This commit is contained in:
parent
669669fcb4
commit
a834ddf88c
|
@ -78,7 +78,8 @@
|
||||||
in throwForRemovedArgs (import ./modules {
|
in throwForRemovedArgs (import ./modules {
|
||||||
inherit pkgs lib check extraSpecialArgs;
|
inherit pkgs lib check extraSpecialArgs;
|
||||||
configuration = { ... }: {
|
configuration = { ... }: {
|
||||||
imports = modules;
|
imports = modules
|
||||||
|
++ [{ programs.home-manager.path = toString ./.; }];
|
||||||
nixpkgs = { inherit (pkgs) config overlays; };
|
nixpkgs = { inherit (pkgs) config overlays; };
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -96,7 +97,7 @@
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
docs = import ./docs { inherit pkgs; };
|
docs = import ./docs { inherit pkgs; };
|
||||||
hmPkg = pkgs.callPackage ./home-manager { };
|
hmPkg = pkgs.callPackage ./home-manager { path = toString ./.; };
|
||||||
in {
|
in {
|
||||||
default = hmPkg;
|
default = hmPkg;
|
||||||
home-manager = hmPkg;
|
home-manager = hmPkg;
|
||||||
|
|
Loading…
Reference in a new issue