···33 configuration to work.
4455 See also
66- - ./nix.nix
77- - ./nix-flakes.nix
66+ - ./nix.nix
77+ - ./nix-flakes.nix
88 */
99{ config, lib, ... }:
1010let
···2828 Whether the `nix-channel` command and state files are made available on the machine.
29293030 The following files are initialized when enabled:
3131- - `/nix/var/nix/profiles/per-user/root/channels`
3232- - `/root/.nix-channels`
3333- - `$HOME/.nix-defexpr/channels` (on login)
3131+ - `/nix/var/nix/profiles/per-user/root/channels`
3232+ - `/root/.nix-channels`
3333+ - `$HOME/.nix-defexpr/channels` (on login)
34343535 Disabling this option will not remove the state files from the system.
3636 '';
···4848 "nixos-config=/etc/nixos/configuration.nix"
4949 "/nix/var/nix/profiles/per-user/root/channels"
5050 ]
5151- else [];
5151+ else [ ];
5252 defaultText = ''
5353 if nix.channel.enable
5454 then [
···8686 '';
87878888 environment.extraSetup = mkIf (!cfg.channel.enable) ''
8989- rm $out/bin/nix-channel
8989+ rm --force $out/bin/nix-channel
9090 '';
91919292 # NIX_PATH has a non-empty default according to Nix docs, so we don't unset