diff --git a/config.nix b/config.nix index 7daea04c..e971e3b5 100644 --- a/config.nix +++ b/config.nix @@ -1,4 +1,4 @@ -{ pkgs }: +{ pkgs ? import {} }: let @@ -62,6 +62,7 @@ let autoload -U compinit && compinit autoload -U promptinit && promptinit + bindkey -e setopt autocd export PROMPT='%B%(?..[%?] )%b> ' @@ -75,8 +76,11 @@ let nixdarwin-rebuild () { case $1 in - 'switch') nix-env -f '' -iA nixdarwin.toplevel ;; - ''') return 1 ;; + "build") nix-build --no-out-link "" -A nixdarwin.toplevel ;; + "repl") nix-repl "$HOME/.nixpkgs/config.nix" ;; + "shell") nix-shell "" -p nixdarwin.toplevel --run "zsh -l" ;; + "switch") nix-env -f "" -iA nixdarwin.toplevel && exec zsh -l ;; + "") return 1 ;; esac } '';