diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2016-12-02 23:03:42 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2016-12-02 23:03:42 +0100 |
| commit | b0e55cb39e6ee9b7c7b3f54827c8d776ae3946bf (patch) | |
| tree | 86b5701fe4d4ac62c6397af48396bd2e172bc2af | |
| parent | 12aa7e581568f61f69a1bd0da905d6f58f083e2a (diff) | |
use system profile
| -rw-r--r-- | config.nix | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -117,7 +117,7 @@ let 'build') nix-build --no-out-link '<nixpkgs>' -A nixdarwin.toplevel "$@" ;; 'repl') nix-repl "$HOME/.nixpkgs/config.nix" "$@" ;; 'shell') nix-shell '<nixpkgs>' -p nixdarwin.toplevel --run '${pkgs.lnl.zsh}/bin/zsh -l' "$@" ;; - 'switch') nix-env -f '<nixpkgs>' -iA nixdarwin.toplevel "$@" && nix-shell '<nixpkgs>' -A nixdarwin.toplevel --run 'sudo $out/activate' && exec ${pkgs.lnl.zsh}/bin/zsh -l ;; + 'switch') sudo nix-env --profile /nix/var/nix/profiles/system --set $(nix-build --no-out-link '<nixpkgs>' -A nixdarwin.toplevel) && nix-shell '<nixpkgs>' -A nixdarwin.toplevel --run 'sudo $out/activate' && exec ${pkgs.lnl.zsh}/bin/zsh -l ;; esac } |
