diff --git a/modules/cli.nix b/modules/cli.nix index 829094f..2b1484f 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -58,15 +58,12 @@ in '') (writeShellScriptBin "channel" '' - nixos="/nix/var/nix/profiles/per-user/root/channels/nixos" - [[ "$(<$nixos/.version-suffix)" =~ ^pre ]] && - channel="unstable" || - channel="$(<$nixos/.version)" + branch="$(jq -r .nodes.nixpkgs.original.ref