Open dustinlyons opened 8 months ago
is this why I'm getting "Invalid option. Exiting script" after running
nix run --extra-experimental-features 'nix-command flakes' '.#apply'
and entering my details?
@ar4s-gh You're probably typing 'yes' or 'no'. It should be 'Y', 'y', 'N', or 'n'. I think this is a bug in the apply script I need to fix.
Edit: I just fixed this on main
. If you try to initialize the template again, you'll likely grab the cache of the old one, so first delete ~/.cache/nix
before initializing again.
Or just type 'y' or 'n' instead of 'yes' and 'no', that's an easy workaround.
Currently, we run
bin/apply
to ask the user for some info, and run ased
replace function to replace various static tokens throughout the code.These look like
%USER%
,%HOST_NAME%
, etc. in the templates. We should clean these up so that it's defined once inflake.nix
, and that input is provided as part of building the system.