profiles/os/nixos: Disable channels
Description of changes
This MR accomplishes two goals:
- Remove the hard-coded root channel in
NIX_PATH
. - Removing
nix-channel
and its associatedPATH
/NIX_PATH
modifications;
The first causes a slurry of "Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring" warnings when using nix-shell
, which this prevents.
The second disables the unused channel facilities.
For system management, the flake is used instead.
For users, channels are useless: they create symlinks from their AFS homes to the Nix store on the machine where they first add the channel, but this store path is 1) not necessarily present in other machines, 2) even if present, it is not necessarily a GC root in other machines, meaning it can be deleted at any time, 3) the GC may not even be able to access user homes to confirm that the link is still there, leading it to remove it from the GC roots.
All in all, they are currently unusable (the same goes for nix profile
).
Things done
-
Tested -
Updated documentation (Wiki/NetBox) -
Breaking change