101 lines
3.0 KiB
Markdown
101 lines
3.0 KiB
Markdown
# NixOS Gaming Base
|
|
|
|
Diese Basis-Config ist für ein Desktop-System mit
|
|
|
|
- Intel Core i9-13900KF
|
|
- AMD Radeon RX 9070 XT
|
|
|
|
ausgelegt und nutzt `nixos-unstable`, `Chaotic-Nyx` und eine waehlbare Desktop-Umgebung. Fokus:
|
|
|
|
- aktueller Kernel
|
|
- AMD-Grafik mit Chaotic `mesa-git` und 32-Bit-Libs für Steam/Proton
|
|
- PipeWire + Gaming-/Desktop-Audio-Tools
|
|
- Steam, Gamescope, MangoHud, Lutris, Heroic, LACT
|
|
- RGB- und Peripherie-Basis fuer deine USB-Geraete
|
|
- Desktop-Auswahl zwischen KDE, GNOME, Budgie und Hyprland
|
|
|
|
## Struktur
|
|
|
|
- `flake.nix`: Einstieg über `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/default.nix`: Desktop-Auswahl ueber `profiles.desktop`
|
|
- `modules/desktop/kde.nix`: KDE Plasma 6 + SDDM
|
|
- `modules/desktop/gnome.nix`: GNOME + GDM
|
|
- `modules/desktop/budgie.nix`: Budgie
|
|
- `modules/desktop/hyprland.nix`: Hyprland + SDDM
|
|
- `modules/peripherals.nix`: OpenRGB, Logitech/Corsair-nahe Tools, USB-Helfer
|
|
|
|
## USB-Bezug
|
|
|
|
Die Config berücksichtigt diese aktuell erkannten Geräte:
|
|
|
|
- `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 für das Scarlett Solo
|
|
- waehlbarer Desktop via `profiles.desktop`
|
|
- Chaotic `mesa-git` mit Fallback-Spezialisierung `stable-mesa`
|
|
|
|
## Desktop auswaehlen
|
|
|
|
Die Auswahl passiert zentral in `configuration.nix`:
|
|
|
|
```nix
|
|
profiles.desktop = "kde";
|
|
```
|
|
|
|
Gueltige Werte sind:
|
|
|
|
- `"kde"`
|
|
- `"gnome"`
|
|
- `"budgie"`
|
|
- `"hyprland"`
|
|
|
|
## 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 nötig `users.users.max` und `networking.hostName` in `configuration.nix` anpassen.
|
|
3. Gewuenschten Desktop ueber `profiles.desktop` in `configuration.nix` setzen.
|
|
4. Passwort fuer den Benutzer setzen:
|
|
|
|
```bash
|
|
passwd max
|
|
```
|
|
|
|
5. Flake lock erstellen:
|
|
|
|
```bash
|
|
nix flake lock
|
|
```
|
|
|
|
6. System aktivieren:
|
|
|
|
```bash
|
|
sudo nixos-rebuild switch --flake .#nixos-gaming
|
|
```
|
|
|
|
## Späterer Ausbau
|
|
|
|
- Desktop-spezifische Pakete und Defaults 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
|