Provides a command nixos
. This command is meant to bring the NixOS tooling up to par with the Nix3 CLI and especially flakes.
- Verbs
-
build
-
build-vm
-
build-vm-with-bootloader
(nowbuild-vm --bootloader
) -
boot
-
switch
-
apply
(alias forswitch
for that supreme DevOps feel) -
test
-
dry-activate
-
dry-build
-
edit
-
- Flags
-
--profile-name
-
--rollback
-
--install-bootloader
-
--build-host
-
--target-host
-
- Miscellaneous
- (?) Building non-flake configurations
-
nixos-install
-
nixos-version
In your user's profile
nix profile install github:max-privatevoid/nixos-command
Or use it in a temporary shell
nix shell github:max-privatevoid/nixos-command
Build the NixOS configuration for the flake in the current directory
nixos build
Build the NixOS configuration for the host "paris" in .
nixos build .#paris
The classic nixos-rebuild switch
, assuming /etc/nixos is a flake
nixos switch /etc/nixos
Build a system from a GitHub repository and activate on next boot
nixos boot github:my-company/nixos-infra#styx