Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newbie clarification in when using 'nixos-install --flake .#hostname' #21

Open
TeeWallz opened this issue Feb 18, 2023 · 2 comments
Open

Comments

@TeeWallz
Copy link

Hi,

Thank you so much for making this, I am learning more about nixos here than anywhere else.

I am however a dumbass and get stuck on simple things.

When i read the command below from the Readme, I assumed that the hash was to be removed as it was similar to a comment. An hour later I realized it was required (RTFM, I know)
nixos-install --flake .#hostname

Could a little note be added to keep the hash, so others don't get tripped up? It's an eclectic way to adding arguments to a program and looks 'wrong' on first glance.
If this is a non issue, please feel free to close this.

Thanks again

@MrFoxPro
Copy link

MrFoxPro commented Feb 19, 2023

I'm new too and seems like nixos-install --flake .#hostname does install nixos from custom flake, not from itself.
I found that parameter after hashbang --flake /mnt/etc/nixos#HOSTNAME is likely read as selecting target hostname.
https://nixos.wiki/wiki/Flakes#Using_nix_flakes_with_NixOS
image

@Misterio77
Copy link
Owner

Hey, thanks the feedback and kind words!
Yeah, I agree # is a little unusual in command arguments. I'll go ahead and add a note.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants