viperML / nh

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

feature request: option to set shell script to determine flakeref #145

Closed Libadoxon closed 3 months ago

Libadoxon commented 3 months ago

I would wish for an option to set a shell script in the NixOs module which gets run on rebuild to determine the right flakeref to use. For people who wish for a different way to distinguish their hosts other than hostname. I would be willing to try to implement such a feature if the general idea would be welcomed.

viperML commented 3 months ago

You can write a wrapper script that exports the proper $FLAKE env variable or calls nh with the proper arguments.