Something went wrong. Try again.
NixOS config primarily for gaming
Something went wrong. Try again.
Files
Verified signature Signed by keenanweaver.tngl.sh SHA256:amsvPCSDtoWH7PHj8KCRR8L1oPdJSvcwI4HcvdfAmFw Click to copy SHA
Verified signature Signed by keenanweaver.tngl.sh SHA256:amsvPCSDtoWH7PHj8KCRR8L1oPdJSvcwI4HcvdfAmFw Click to copy SHA
Verified signature Signed by keenanweaver.tngl.sh SHA256:amsvPCSDtoWH7PHj8KCRR8L1oPdJSvcwI4HcvdfAmFw Click to copy SHA
- Nix 58%
- CSS 42%
- Python <1%
- Shell <1%
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
tmpfsroot, persistent state onbtrfssubvolumes, 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.
- Chaotic Nyx
- ProverbialPennance - Just One More Repo
- powerofthe69 - nix-gaming-edge
- bandithedoge - NUR packages
- Whovian9369 - nix-game-preservation and aaru
- xddxdd - nix-cachyos-kernel
Among many others. Thank you for your work!
- mightyiam - Dendritic pattern
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.
doom-wad-extractorscriptgame-wrapperscript- fastfetch module
Remorsedownloader modules & Mullvad tunnel