mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
home-manager: use shellHook to install
This changes the installation command from
nix-shell $HM_PATH -A install --run 'home-manager switch'
to
nix-shell $HM_PATH -A install
The added shell hook will print some useful information and run
`home-manager switch`.
This commit is contained in:
@@ -6,9 +6,7 @@ rec {
|
||||
path = toString ./.;
|
||||
};
|
||||
|
||||
install =
|
||||
pkgs.runCommand
|
||||
"home-manager-install"
|
||||
{ propagatedBuildInputs = [ home-manager ]; }
|
||||
"";
|
||||
install = import ./home-manager/install.nix {
|
||||
inherit home-manager pkgs;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user