80 lines
2.5 KiB
Markdown
80 lines
2.5 KiB
Markdown
# NixOS Gaming Base
|
|
|
|
Diese Basis-Config ist fuer ein Desktop-System mit
|
|
|
|
- Intel Core i9-13900KF
|
|
- AMD Radeon RX 9070 XT
|
|
|
|
ausgelegt und nutzt jetzt `nixos-unstable`, `Chaotic-Nyx` und COSMIC als Wayland-Desktop. Fokus:
|
|
|
|
- aktueller Kernel
|
|
- AMD-Grafik mit Chaotic `mesa-git` und 32-Bit-Libs fuer Steam/Proton
|
|
- PipeWire + Gaming-/Desktop-Audio-Tools
|
|
- Steam, Gamescope, MangoHud, Lutris, Heroic, LACT
|
|
- RGB- und Peripherie-Basis fuer deine USB-Geraete
|
|
|
|
## Struktur
|
|
|
|
- `flake.nix`: Einstieg ueber `nixos-unstable` + `chaotic-cx/nyx`
|
|
- `configuration.nix`: Host-spezifische Einstiegsdatei
|
|
- `modules/base.nix`: Boot, Kernel, Locale, Nix, Firmware, Governor
|
|
- `modules/chaotic-nyx.nix`: Chaotic-Nyx Aktivierung, `allowUnfree`, `mesa-git`
|
|
- `modules/graphics/mesa-amd.nix`: AMDGPU + Mesa/RADV Basis
|
|
- `modules/audio/pipewire.nix`: PipeWire, JACK, Pulse, Audio-Tools
|
|
- `modules/gaming.nix`: Steam, Gamescope, Wine/Launcher-Stack
|
|
- `modules/desktop/cosmic.nix`: COSMIC Desktop + COSMIC Greeter
|
|
- `modules/peripherals.nix`: OpenRGB, Logitech/Corsair-nahe Tools, USB-Helfer
|
|
|
|
## USB-Bezug
|
|
|
|
Die Config beruecksichtigt diese aktuell erkannten Geraete:
|
|
|
|
- `048d:5702` ITE RGB LED Controller
|
|
- `1235:8211` Focusrite Scarlett Solo 3rd Gen
|
|
- `1b1c:1bfd` Corsair K70 CORE RGB
|
|
- `046d:c539` Logitech Lightspeed Receiver
|
|
|
|
Daraus folgen aktuell:
|
|
|
|
- `openrgb` + `hardware.i2c.enable` fuer RGB-/Board-Zugriff
|
|
- `ratbagd` + `piper` fuer Logitech-Gaming-Peripherie
|
|
- `solaar`, `usbutils`, `pciutils` fuer Device-Handling und Diagnose
|
|
- PipeWire-Setup fuer das Scarlett Solo
|
|
- COSMIC als Wayland-Desktop mit `cosmic-greeter`
|
|
- Chaotic `mesa-git` mit Fallback-Spezialisierung `stable-mesa`
|
|
|
|
## Chaotic-Nyx Hinweis
|
|
|
|
Die Flake bindet `github:chaotic-cx/nyx/nyxpkgs-unstable` direkt ein und importiert
|
|
`chaotic.nixosModules.default`.
|
|
`modules/chaotic-nyx.nix` aktiviert `chaotic.mesa-git.enable = true;`.
|
|
|
|
## Nach der Installation
|
|
|
|
1. Die vom Installer erzeugte `hardware-configuration.nix` nach `./hardware-configuration.nix` kopieren.
|
|
2. Falls noetig `users.users.max` und `networking.hostName` in `configuration.nix` anpassen.
|
|
3. Passwort fuer den Benutzer setzen:
|
|
|
|
```bash
|
|
passwd max
|
|
```
|
|
|
|
4. Flake lock erstellen:
|
|
|
|
```bash
|
|
nix flake lock
|
|
```
|
|
|
|
5. System aktivieren:
|
|
|
|
```bash
|
|
sudo nixos-rebuild switch --flake .#nixos-gaming
|
|
```
|
|
|
|
## Spaeterer Ausbau
|
|
|
|
- COSMIC weiter tunen, z. B. Autologin, Keyring-Policy, Flatpak
|
|
- OBS / Discord / OpenRGB-Profile / Fancontrol
|
|
- Btrfs-Subvolumes, Snapshots, Impermanence
|
|
- spezielle Kernel- oder Scheduler-Tweaks, falls du sie wirklich brauchst
|