Add basic installation on new machine to README

This commit is contained in:
Joshua Yuen 2025-07-31 01:33:37 -04:00
parent 63ca17c9c3
commit 2ce1a8ae1b
Signed by: josh
GPG Key ID: 502720BC22ED411C
1 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,15 @@
# Installing on a new machine
1) Install [NixOS](https://nixos.org/) from an ISO via USB
2) Reboot machine
3) Edit /etc/nixos/configuration and add `git` to packages
4) Clone this repo
5) Copy new `host/` configuration for the new machine
6) Copy /etc/nixos/hardware-configuration to `host/<host>/hardware.nix`
7) Edit `flake.nix` to point to the new `host`
8) `git add .`
9) Run `sudo nixos-rebuild switch --flake .#nixos`
# Building NixOS VM # Building NixOS VM
`nix build .#nixosConfigurations.nixosvm.config.system.build.vm` `nix build .#nixosConfigurations.nixosvm.config.system.build.vm`
https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf