nix-setup/README.md
2024-10-19 02:39:35 +02:00

476 B

Setup

on formatted drive:

nixos-generate-config --root /mnt
cd /mnt/etc/nixos
vim hardware-configuration.nix

insert

boot.loader.grub.device = "/dev/ d i s k ";
networking.hostName = "TudbuT-Nix m a c h i n e";'

quit and:

nix-shell -p git
rm configuration.nix
cd /mnt/etc/nixos
git clone https://git.tudbut.de/tudbut/nix-setup
pushd nix-setup ; mv $(ls -a) .. ; popd
exit
bash init.sh
nixos-install

on the install:

nixos-edit init