aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-05-16 11:59:34 +0200
committerMartin Fischer <martin@push-f.com>2026-05-16 12:00:36 +0200
commit737c2c2d92ecc3f2e0bb1e528e987efa21e66566 (patch)
treebb9bae485031ccc57205039d87ed0d6b4daf01b3
parent3285b7b4f1421c69042cc471aceed7446f5d8a18 (diff)
refactor: set nix.channel.enable = false
The mentioned issue has been long fixed in https://github.com/NixOS/nixpkgs/commit/1e6acabaebb2d3eb13cde9d8742aadb9480abcd7.
-rw-r--r--nixos/profiles/common/sanix.nix9
1 files changed, 1 insertions, 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;
}