Update installation instructions
This commit is contained in:
parent
84ad07f5f2
commit
4a22d7f9af
29
README.md
29
README.md
|
@ -55,37 +55,32 @@ repository to your new home directory (e.g. `/mnt/home/simon/nixos`).
|
||||||
Add a symlink as the global configuration
|
Add a symlink as the global configuration
|
||||||
|
|
||||||
sudo mkdir -p /mnt/etc/nixos/
|
sudo mkdir -p /mnt/etc/nixos/
|
||||||
sudo ln -s /mnt/home/simon/nixos/machines/nunotaba/configuration.nix /mnt/etc/nixos/configuration.nix
|
sudo ln -s ../../home/simon/nixos/machines/nunotaba/configuration.nix /mnt/etc/nixos/configuration.nix
|
||||||
|
|
||||||
Generate hardware configuration and copy hardware configuration to machine
|
Generate hardware configuration and copy hardware configuration to machine
|
||||||
configuration
|
configuration
|
||||||
|
|
||||||
sudo nixos-generate-config --root /mnt/
|
sudo nixos-generate-config --root /mnt/
|
||||||
sudo cp /mnt/etc/nixos/hardware-configuration.nix /mnt/home/simon/nixos/machines/nunotaba/hardware-configuration.nix
|
sudo mv /mnt/etc/nixos/hardware-configuration.nix /mnt/home/simon/nixos/machines/nunotaba/hardware-configuration.nix
|
||||||
|
sudo ln -s ../../home/simon/nixos/machines/nunotaba/hardware-configuration.nix /mnt/etc/nixos/hardware-configuration.nix
|
||||||
Install NixOS and reboot (if you do not have another machine, omit
|
|
||||||
`--no-root-passwd`)
|
|
||||||
|
|
||||||
|
Install NixOS
|
||||||
sudo nixos-install --no-root-passwd
|
sudo nixos-install --no-root-passwd
|
||||||
sudo reboot
|
|
||||||
|
|
||||||
**Hint**: If you need to reboot to the installation system because something
|
Enter the target as a container, set a user password and clone the dotfiles
|
||||||
didn’t work, first open the luks partition like in the setup script, run `sudo
|
|
||||||
vgchange -ay` to scan for LVM VGs and then mount the other filesystems like in
|
|
||||||
the script.
|
|
||||||
|
|
||||||
SSH into the machine (or login locally if you set a root password), set a user
|
sudo cp /etc/resolv.conf /mnt/etc/ # see https://github.com/NixOS/nixpkgs/issues/39665
|
||||||
password and clone the dotfiles
|
nixos-enter
|
||||||
|
|
||||||
ssh root@machine
|
|
||||||
rm /etc/nixos/configuration.nix
|
|
||||||
passwd simon
|
passwd simon
|
||||||
^D
|
su simon
|
||||||
ssh simon@machine
|
|
||||||
# press “q” to get rid of zsh-newuser-install
|
# press “q” to get rid of zsh-newuser-install
|
||||||
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
|
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
|
||||||
source $HOME/.homesick/repos/homeshick/homeshick.sh
|
source $HOME/.homesick/repos/homeshick/homeshick.sh
|
||||||
homeshick clone https://git.sbruder.de/simon/dotfiles
|
homeshick clone https://git.sbruder.de/simon/dotfiles
|
||||||
|
^D # user
|
||||||
|
^D # nixos-enter
|
||||||
|
sudo rm /mnt/etc/resolv.conf
|
||||||
|
reboot
|
||||||
|
|
||||||
## How to add new device
|
## How to add new device
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue