···3 configuration to work.
45 See also
6- - ./nix.nix
7- - ./nix-flakes.nix
8 */
9{ config, lib, ... }:
10let
···28 Whether the `nix-channel` command and state files are made available on the machine.
2930 The following files are initialized when enabled:
31- - `/nix/var/nix/profiles/per-user/root/channels`
32- - `/root/.nix-channels`
33- - `$HOME/.nix-defexpr/channels` (on login)
3435 Disabling this option will not remove the state files from the system.
36 '';
···48 "nixos-config=/etc/nixos/configuration.nix"
49 "/nix/var/nix/profiles/per-user/root/channels"
50 ]
51- else [];
52 defaultText = ''
53 if nix.channel.enable
54 then [
···86 '';
8788 environment.extraSetup = mkIf (!cfg.channel.enable) ''
89- rm $out/bin/nix-channel
90 '';
9192 # NIX_PATH has a non-empty default according to Nix docs, so we don't unset
···3 configuration to work.
45 See also
6+ - ./nix.nix
7+ - ./nix-flakes.nix
8 */
9{ config, lib, ... }:
10let
···28 Whether the `nix-channel` command and state files are made available on the machine.
2930 The following files are initialized when enabled:
31+ - `/nix/var/nix/profiles/per-user/root/channels`
32+ - `/root/.nix-channels`
33+ - `$HOME/.nix-defexpr/channels` (on login)
3435 Disabling this option will not remove the state files from the system.
36 '';
···48 "nixos-config=/etc/nixos/configuration.nix"
49 "/nix/var/nix/profiles/per-user/root/channels"
50 ]
51+ else [ ];
52 defaultText = ''
53 if nix.channel.enable
54 then [
···86 '';
8788 environment.extraSetup = mkIf (!cfg.channel.enable) ''
89+ rm --force $out/bin/nix-channel
90 '';
9192 # NIX_PATH has a non-empty default according to Nix docs, so we don't unset