{ home-manager, runCommand }: runCommand "home-manager-install" { propagatedBuildInputs = [ home-manager ]; preferLocalBuild = true; allowSubstitutes = false; shellHookOnly = true; shellHook = '' confFile="''${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home.nix" if [[ ! -e $confFile ]]; then echo echo "Creating initial Home Manager configuration..." mkdir -p "$(dirname "$confFile")" cat > $confFile <