Skip to content

nielsdekoeijer/host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niels Nix Stuff

Install (from ISO)

Build and burn the ISO:

./build-iso.sh
./burn-iso.sh /dev/sdX

Boot the USB. You'll auto-login as root and see a prompt. Then:

nmcli device wifi rescan
nmcli device wifi connect "SSID" --ask
install-nixos

After it finishes:

# set your password
nixos-enter --root /mnt -c "passwd niels"
# reboot
reboot

Adding a new device

  1. Create devices/<name>/ with configuration.nix, home-manager.nix, and disko.nix
  2. disko.nix can just be import ../../common/disko/standard-nvme.nix or a custom layout
  3. configuration.nix imports ../../common/configuration.nix + any hardware modules
  4. home-manager.nix imports ../../common/home-manager.nix + any extra packages
  5. Add the device to flake.nix
  6. Build ISO, boot, run install-nixos

Good commands

# rebuild current host
./switch.sh

# format all nix files
./format.sh

# build installer ISO
./build-iso.sh

# burn ISO to USB
./burn-iso.sh /dev/sdX

Sources

About

NixOS setup for various devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •