From 290c1c8116cd70cc248cf4bb9458611a16c5694a Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 27 Aug 2020 21:10:56 +0200 Subject: Use niv for tracking channel versions This way the config is actually reproducible without manually tracking supported nixpkgs states. home-manager is now not installed environment-wide anymore but only available inside a nix-shell. --- shell.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..1e28dc1 --- /dev/null +++ b/shell.nix @@ -0,0 +1,18 @@ +let + sources = import ./nix/sources.nix; + pkgs = import sources.nixpkgs { }; + +in pkgs.mkShell rec { + name = "home-manager"; + + buildInputs = [ + pkgs.niv + (import sources.home-manager { inherit pkgs; }).home-manager + ]; + + shellHook = '' + export NIX_SHELL_NAME="${name}" + export NIX_PATH="nixpkgs=${sources.nixpkgs}:home-manager=${sources.home-manager}" + ''; + +} -- cgit v1.2.3