nix-setup/README.md
2025-12-18 15:58:54 +01:00

1.3 KiB

Setup

install.sh process

curl -o install.sh https://t4t.li/nix
bash install.sh

for minilaptop

  • specify efi boot (enter g when asked for partition table type)
  • do not answer yes when the script wants to reboot
    • instead edit hardware-configuration
    • and add ./minilaptop.nix to imports
    • then nixos-install and continue as normal

note that the laptop wont boot installation media. remove the ssd and install from an external device (answer yes when it asks whether you are sure you want to run the script from a non- install-medium - and be FUCKING careful), then reinsert into the laptop.

how to use if you are not tudbut

  1. fork
  2. search and replace tudbut everywhere
  3. probably remove a bunch of stuff from home.nix
  4. suffer while normaling my weirdness
  5. profit

init.sh process (do not do this)

(all in root)

with formatted drive, run:

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

-> and insert:

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

quit and run:

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

reboot and run on the install:

nixos-edit init