From 737c2c2d92ecc3f2e0bb1e528e987efa21e66566 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 16 May 2026 11:59:34 +0200 Subject: refactor: set nix.channel.enable = false The mentioned issue has been long fixed in https://github.com/NixOS/nixpkgs/commit/1e6acabaebb2d3eb13cde9d8742aadb9480abcd7. --- nixos/profiles/common/sanix.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/nixos/profiles/common/sanix.nix b/nixos/profiles/common/sanix.nix index 626aa73..a92cb69 100644 --- a/nixos/profiles/common/sanix.nix +++ b/nixos/profiles/common/sanix.nix @@ -12,12 +12,5 @@ ]; environment.variables.NIXPKGS_CONFIG = lib.mkForce (toString ./nixpkgs/config.nix); - # Remove the stateful nix-channel command - environment.extraSetup = '' - rm --force $out/bin/nix-channel - ''; - - # This option is broken when set false, prevent people from setting it to false - # And we implement the important bit above ourselves - nix.channel.enable = true; + nix.channel.enable = false; } -- cgit v1.3.1