Skip to content

max-privatevoid/nixos-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-command - a redesign of nixos-rebuild

Provides a command nixos. This command is meant to bring the NixOS tooling up to par with the Nix3 CLI and especially flakes.

Supported features

  • Verbs
    • build
    • build-vm
    • build-vm-with-bootloader (now build-vm --bootloader)
    • boot
    • switch
    • apply (alias for switch 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

Install

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

Usage examples

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published