install steps to follow after first rebuild

This commit is contained in:
Cyryl Płotnicki 2021-04-11 10:39:37 +01:00
parent de1105648c
commit e3bb6ffdb0

View file

@ -60,17 +60,28 @@ nixos-install
reboot reboot
``` ```
logged in as root on the target box: ctrl-alt-f1 root login:
```bash ```bash
ln -vfs /home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/2.nix /etc/nixos/configuration.nix ln -vfs /home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/2.nix /etc/nixos/configuration.nix
vim /home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/2.nix vim /home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/2.nix
nixos-rebuild switch nixos-rebuild switch
passwd cyryl passwd cyryl
chown cyryl -R /home/cyryl
reboot reboot
``` ```
4. Create new / update the `boxes/hostname` entry with the edited bootstrap files from above gui-login as cyryl:
```bash
cd ~/dev/dotfiles/
mkdir -p nixos/boxes/HOSTNAME
cp nixos/boxes/bootstrap/2.nix nixos/boxes/HOSTNAME/default.nix
cp nixos/boxes/bootstrap/hardware-configuration.nix nixos/boxes/HOSTNAME/
ln -vfs /home/cyryl/dev/dotfiles/nixos/boxes/HOSTNAME/default.nix /etc/nixos/configuration.nix
sudo nixos-rebuild switch --upgrade
reboot
```
## guix ## guix