From 8c566779beedb979d1c8a77f543403d4dda63840 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 2 Apr 2021 17:48:50 -0400 Subject: [PATCH] update channel script for flakes --- modules/cli.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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