Closed sdaros closed 3 years ago
What is meant by this?
Install NixOS:
USER=<your_user_name_here>
You enter username before nixos-install
?
Yes that's correct. You enter your username as environment variable before the nixos-install
command.
The reason for this is that you are executing the nixos-install
command as the root user (since you switched to the root user using sudo su -
in step 4), but when setting up your system you usually want to also create a non-privileged, normal user as well and this works when you set the environment variable USER=your_user_name
(see https://github.com/hlissner/dotfiles/blob/master/modules/options.nix#L40-L41)
I've updated the quickstart instructions in 809ee25 with your suggestions and then some. Thanks for the help!
I just recently used the quick start instructions in the README to provision a new laptop, and I figured that it may be helpful for others (who aren't very familiar with the nix flakes approach) to clarify the quickstart section in the README. My suggestion would be something along the following lines:
sudo su -
git add hosts/new_folder_for_host
before running nixos-install. Reboot!I think just adding the
--impure
flag by default and reminding users to do agit add host/new_folder_for_host
would be sufficient for new comers.