I managed to build my own custom NixOS ISO with this command:
nix-build '<nixpkgs/nixos>' \
-A config.system.build.isoImage \
-I nixpkgs=channel:nixos-19.09-small \
-I nixos-config=iso.nix
where iso.nix
is my custom configuration.
The ISO is build with the nixos-19.09-small
channel thanks to the -I nixpkgs=…
option.
However, when I install a new machine with this ISO and I run nix-channel --list
from it, I get:
nixos https://nixos.org/channels/nixos-19.09
Is there a way to change the default channel that root is subscribed to? In my case, I would like the default channel to be nixos-19.09-small
.