netadr / nixos-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My NixOS config

Based heavily on https://github.com/pimeys/nixos, without this as a guide this setup would not have been possible.

New install guide

  1. git clone https://github.com/claytonjgilmer/nixos-config /tmp/nixos
  2. Do partitioning/mounting steps (look at hosts to see which partitions need to be present & mounted)
  3. mv /tmp/nixos /mnt/etc/nixos
  4. nixos-generate-config --root /mnt --show-hardware-config
  5. Add output of the previous file to a new config in hosts
  6. Add the new host to flake.nix
  7. nix-shell -p git nixFlakes
  8. Merge the hardware config with the dotfiles in /mnt/etc/nixos
  9. Install NixOS: nixos-install --root /mnt --flake /mnt/etc/nixos#XYZ, where XYZ is the host you want to install.
  10. Reboot!
  11. Change your root and $USER passwords!
  12. chmod -R users /etc/nixos
  13. ln -s /etc/nixos /home/claytonjgilmer/.config/nixpkgs

About


Languages

Language:Nix 100.0%