viperML / nh

Yet another nix cli helper
European Union Public License 1.2
1.02k stars 35 forks source link

add profile naming functionality #150

Closed GuterBenutzername closed 2 months ago

GuterBenutzername commented 2 months ago

Adds the ability to name profiles, a la nixos-rebuild --profile-name

Quick, dirty, but functional; cleanup is appreciated.

viperML commented 2 months ago

what's the use for this?

GuterBenutzername commented 2 months ago

for naming profiles when added to the bootloader, for if you prefer to be able to have readable names on boot instead of "Generation 53", "Generation 54", etc. nixos-rebuild had this feature, so I just reimplemented it here.

viperML commented 2 months ago

Doesn't system.nixos.tags already give you some customizability?

GuterBenutzername commented 2 months ago

Yes, but it's useful to have the option, particularly in my usage scenario where it's easier to name profiles after the changes that were made compared to the last one (like a git commit message)

viperML commented 2 months ago

It doesn't work with systemd-boot.