diff options
author | Robert Helgesson <robert@rycee.net> | 2017-10-21 20:51:28 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-10-24 01:14:22 +0200 |
commit | bf3a8c63838c998e06e6825ac80f1a9a7f735a57 (patch) | |
tree | 65ff27efd0e007961d5ff864854cbc895cf67878 /default.nix | |
parent | 5605e46acbe06f82fe9392559ce201fa9de2e0a6 (diff) |
home-manager: point <home-manager> to project root
Before this path would point to the modules path. Using the project
root instead makes it possible to set `<home-manager>` to point to a
downloadable archive of Home Manager. This should make it
significantly easier to install and keep Home Manager up to date.
To match this change we also deprecate the Home Manager option
programs.home-manager.modulesPath
and instead ask users to use
programs.home-manager.path
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/default.nix b/default.nix index d9024779c74..b9eedd47041 100644 --- a/default.nix +++ b/default.nix @@ -1,2 +1,14 @@ -# Simply defer to the home-manager script derivation. -import ./home-manager +{ pkgs ? import <nixpkgs> {} }: + +rec { + home-manager = import ./home-manager { + inherit pkgs; + path = ./.; + }; + + install = + pkgs.runCommand + "home-manager-install" + { propagatedBuildInputs = [ home-manager ]; } + ""; +} |