diff --git a/home-manager/install.nix b/home-manager/install.nix index 8abf6af9..c58c0ba7 100644 --- a/home-manager/install.nix +++ b/home-manager/install.nix @@ -6,6 +6,7 @@ runCommand propagatedBuildInputs = [ home-manager ]; preferLocalBuild = true; allowSubstitutes = false; + shellHookOnly = true; shellHook = '' confFile="''${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home.nix" @@ -53,4 +54,7 @@ runCommand fi ''; } - "" + '' + echo This derivation is not buildable, instead run it using nix-shell. + exit 1 + ''