Go to file
Joshua Yuen 2ce1a8ae1b
Add basic installation on new machine to README
2025-07-31 01:33:37 -04:00
hosts/vm Update default host configuration 2025-07-30 14:04:41 -04:00
modules Disable networking.wireless in favor of networking.networkmanager 2025-07-31 01:31:53 -04:00
profiles/vm Added hyprland, zsh, sddm, and xdg 2025-07-30 13:55:10 -04:00
scripts Add template install-system shell script to live ISO 2025-07-31 01:28:46 -04:00
.gitignore Fix rebuild.sh to use new name for .qcow2 disk 2025-07-31 01:32:35 -04:00
README.md Add basic installation on new machine to README 2025-07-31 01:33:37 -04:00
build-iso.sh Add live .iso build configuration 2025-07-30 14:04:38 -04:00
configuration.nix Added hyprland, zsh, sddm, and xdg 2025-07-30 13:55:10 -04:00
flake.lock Add template install-system shell script to live ISO 2025-07-31 01:28:46 -04:00
flake.nix Add template install-system shell script to live ISO 2025-07-31 01:28:46 -04:00
hardware-configuration.nix Initial commit 2025-07-25 15:23:21 -04:00
hyprland.nix Initial commit 2025-07-25 15:23:21 -04:00
rebuild.sh Fix rebuild.sh to use new name for .qcow2 disk 2025-07-31 01:32:35 -04:00

README.md

Installing on a new machine

  1. Install NixOS 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

nix build .#nixosConfigurations.nixosvm.config.system.build.vm https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf

Building NixOS ISO

nix build .#nixosConfigurations.live.config.system.build.isoImage