diff options
| author | Emily <vcs@emily.moe> | 2025-01-14 01:18:53 +0000 |
|---|---|---|
| committer | Emily <vcs@emily.moe> | 2025-01-14 01:19:21 +0000 |
| commit | d5aeb4e5b17c4e17b4eb515e088d6ea6babd14d8 (patch) | |
| tree | 7fd9aa2ce53a2817c2048b72230ba30fc5dcb254 | |
| parent | efba3517fcd8f034e01dfda1c94a865d11aaf69f (diff) | |
checks: recommend `sudo nix-channel`
| -rw-r--r-- | modules/system/checks.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix index 57ddfd2..a5fd44a 100644 --- a/modules/system/checks.nix +++ b/modules/system/checks.nix @@ -211,8 +211,8 @@ let if ! test -e "$darwinPath"; then echo "[1;31merror: Changed <darwin> but target does not exist, aborting activation[0m" >&2 echo "Add the darwin repo as a channel or set nix.nixPath:" >&2 - echo "$ nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin" >&2 - echo "$ nix-channel --update" >&2 + echo "$ sudo nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin" >&2 + echo "$ sudo nix-channel --update" >&2 echo >&2 echo "or set" >&2 echo >&2 @@ -225,8 +225,8 @@ let if ! test -e "$nixpkgsPath"; then echo "[1;31merror: Changed <nixpkgs> but target does not exist, aborting activation[0m" >&2 echo "Add a nixpkgs channel or set nix.nixPath:" >&2 - echo "$ nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs" >&2 - echo "$ nix-channel --update" >&2 + echo "$ sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs" >&2 + echo "$ sudo nix-channel --update" >&2 echo >&2 echo "or set" >&2 echo >&2 |
