Go to file
Joshua Yuen 79ba19161f
Add Battle.net module enabling Lutris, wine, and winetricks
2026-10-06 19:31:32 -04:00
.vscode Remove repeated lsp options 2025-08-22 11:25:08 -04:00
hosts Add gaming profile and make host profile selection explicit 2026-10-06 19:29:25 -04:00
modules Add Battle.net module enabling Lutris, wine, and winetricks 2026-10-06 19:31:32 -04:00
profiles Add Battle.net module enabling Lutris, wine, and winetricks 2026-10-06 19:31:32 -04:00
scripts Update scripts nixos version 2026-01-24 19:39:39 -05:00
users/josh Make vim the default editor 2026-09-12 00:27:50 -04:00
.gitignore Fix rebuild.sh to use new name for .qcow2 disk 2025-07-31 01:32:35 -04:00
README.md Update README 2026-09-12 00:22:06 -04:00
build-iso.sh Fix broken shebang 2026-09-12 00:15:35 -04:00
build-vm.sh Fix broken shebang 2026-09-12 00:15:35 -04:00
flake.lock Upgrade packages and fix breaking changes 2026-06-21 00:21:19 -04:00
flake.nix Add gaming profile and make host profile selection explicit 2026-10-06 19:29:25 -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.nix and add git to packages
  4. Clone this repo
  5. Create a new directory under hosts/ for the new machine
  6. Copy /etc/nixos/hardware-configuration.nix to hosts/<host>/hardware.nix
  7. Register the host in flake.nix via mkHost:
    nixosConfigurations.<host> = mkHost { host = "<host>"; };
    
  8. git add .
  9. Run sudo nixos-rebuild switch --flake .#<host>

Building NixOS VM

nix build .#nixosConfigurations.vm.config.system.build.vm

or run ./build-vm.sh (removes ./vm.qcow2 first)

https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf

Building NixOS ISO

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

or run ./build-iso.sh

Using Standalone Home Manager

  1. Install Nix via:
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
  1. Create ~/.config/nix/nix.conf file with the following contents to enable the use of flakes:
experimental-features = nix-command flakes
  1. Install git
  2. Clone this repo
  3. Edit flake.nix variables as needed
  4. home-manager switch --flake .#josh

Misc

Garbage collection

nix-collect-garbage -d

Fonts

Checking installed fonts

fc-list

Debugging kitty fonts

kitty --debug-font-fallback

SDDM virtual keyboard ??ZZ