Nix : Add generations list.

This commit is contained in:
Dmitry Voronin 2024-03-04 03:56:08 +03:00
parent 8bb50895e9
commit dbf72d99f9

View file

@ -66,6 +66,11 @@ function nix_live() {
nix build "${_nix_system_config}#nixosConfigurations.live.config.system.build.isoImage"
}
# List nixos generations.
function nix_generations() {
nix-env -p /nix/var/nix/profiles/system --list-generations
}
# Switch nix-on-droid.
function nixdroid_switch() {
nix-on-droid switch --flake .config/linux/system