diff options
author | Robert Helgesson <robert@rycee.net> | 2017-11-24 12:31:08 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-11-29 23:48:58 +0100 |
commit | 06d4f39e7b42fd601eae247e458ac82fece349d0 (patch) | |
tree | 9eaf6ae4b1a2017c1fb5bff12eec0b07a2f79684 /default.nix | |
parent | a1e36a9a37fa1abc28cf66b55635a6b4ff0dc8e2 (diff) |
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`.
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/default.nix b/default.nix index 519c6650c06..2988bbbf0d8 100644 --- a/default.nix +++ b/default.nix @@ -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; + }; } |