A tool to build, list and cleanup your NixOS generations
README.md

nx-gen nx-gen build-status

Installation #

nx-gen can be installed either directly...

cargo install --git https://git.sr.ht/~sntx/nx-gen --locked

... or you can clone the repo beforehand and install with...

git clone https://git.sr.ht/~sntx/nx-gen && cd nx-gen
cargo install --path . --locked

Usage #

Usage: nxgen <COMMAND>

Commands:
  build   Build a new generation
  clean   Automatically clean up old generations
  delete  Delete specific generations
  list    List all generations or or only those that would remain after an algorithm
  sweep   Clean up the nix store
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version