NixOS config primarily for gaming
Files
README.md

Keenan's NixOS Config #

Flake-based NixOS configuration for my machines, built on the dendritic pattern (flake-parts + import-tree + flake-file).

My previous, non-dendritic config is located in the main branch of this repo.

Overview #

  • My primary use-case is gaming, so a majority of the work went into making that work how I want it.
  • Preference on bleeding edge software when (easily) possible. Mesa-git and other nightly builds.
  • I tinker a lot, so I'm constantly experimenting with various settings.

Features #

  • Dendritic modules
  • Impermanence with tmpfs root, persistent state on btrfs subvolumes, declared via the preservation module and disko. LUKS encrypted.
  • Hardening with nix-mineral
  • Secrets with sops-nix
  • Secure Boot support and reproducible bare-metal installs via nixos-anywhere + nixos-facter.
  • Home Manager, nix-flatpak, plasma-manager, and tons of others.

Hosts #

Host Role
nixos-desktop Primary gaming desktop
nixos-laptop Laptop
nixos-htpc Couch gaming box
regret Server (Raspberry Pi 4B)
remorse Server (Raspberry Pi 4B)

Repo structure #

.
├── modules/
│   ├── flake/                # flake-file, inputs, host builder, nixpkgs/overlays,
│   │                         # pkgs-by-name, git-hooks + treefmt, devshell, lib, site data, host facts
│   ├── profiles/             # composite aspects: base, desktop, gaming, ...
│   ├── hosts/<host>/         # per-host overrides & imports, facts
│   ├── apps/                 # per-application aspects
│   ├── desktop-environments/
│   ├── system/               # boot, networking, hardening, preservation, secure boot, ...
│   ├── users/
├── pkgs/                     # custom packages
├── assets/                   # non-Nix files
└── doc/

Acknowledgements #

Massively inspired by Tom Hesse's Nix config.

Thanks to many people that have given me ideas and bits of code.

Thanks to others for maintaining flakes and resources I utilize.

Among many others. Thank you for your work!

If you are not already, please consider contributing to the Nix ecosystem in any way you can!

Disclaimer #

Claude LLM was used for creating the following. Everything else is made by me. However, I also use it for rubberducking.

License #

MIT