$NIXOS_MACHINE_HOSTNAME
refers to the value of
nixosMachines.hosts."${hostname}"
.
sudo ./install.sh $target_disk $NIXOS_MACHINE_HOSTNAME
Build the NixOS system where the hostname is $targetHostname
. It must be
defined the nixosMachines.hosts
set.
NIXOS_MACHINE_HOSTNAME=$targetHostname nix run .#buildThisNixosSystem
Builds all NixOS systems which can be natively built by your CPU.
nix run .#buildAllNixosSystems
nix run home-manager/master -- switch --flake .
Build home-manager for all users that are defined in the realUsers
set.
nix run .#buildAllHomes
Build home-manager for the current user. It must be defined in the realUsers
set.
nix run .#buildThisHome
nix run .#buildIso