From 8959d617aa335fcf10576a3200256cb2b3e8f4bf Mon Sep 17 00:00:00 2001 From: WolfQuery Date: Tue, 14 Apr 2026 19:29:11 +0200 Subject: updated the drivers for herra --- hosts/herra/drivers.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/hosts/herra/drivers.nix b/hosts/herra/drivers.nix index 596adf7..53971a7 100644 --- a/hosts/herra/drivers.nix +++ b/hosts/herra/drivers.nix @@ -1,4 +1,30 @@ {...}: { services.xserver.videoDrivers = ["amdgpu"]; # AMD GPU drivers boot.kernel.sysctl."kernel.sched_rt_runtime_us" = -1; # Realtime audio + + hardware = { + graphics = { + enable = true; + enable32Bit = true; # CRITICAL for Steam/Proton + extraPackages = with pkgs; [ + amdvlk + rocmPackages.clr.icd # OpenCL + ]; + extraPackages32 = with pkgs; [ + driversi686Linux.amdvlk + ]; +}; + +cpu.intel.updateMicrocode = true; + +enableRedistributableFirmware = true; + +boot.extraModulePackages = with config.boot.kernelPackages; [ + v4l2loopback +]; +boot.kernelModules = [ "v4l2loopback" ]; +boot.extraModprobeConfig = '' + options v4l2loopback devices=1 video_nr=1 card_label="OBS Virtual Camera" exclusive_caps=1 +''; + }; } -- cgit v1.2.3 From 3a9adb070ba12350be3df6de30caea2dcb6d3c6c Mon Sep 17 00:00:00 2001 From: WolfQuery Date: Tue, 14 Apr 2026 19:29:38 +0200 Subject: added some gayming and optimization packages for herra --- hosts/herra/packages.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/herra/packages.nix b/hosts/herra/packages.nix index 517ceec..e822493 100644 --- a/hosts/herra/packages.nix +++ b/hosts/herra/packages.nix @@ -31,5 +31,17 @@ ffmpeg v4l-utils cheese + + # Gayming + mangohud # In-game overlay (FPS, GPU/CPU usage) + corectrl # AMD GPU fan/power control (WX 5100 has no software controls otherwise) + vulkan-tools # vulkaninfo for debugging + mesa-demos # glxinfo, glxgears ]; + + programs.corectrl = { + enable = true; + gpuOverclock.enable = true; # optional + }; + } -- cgit v1.2.3 From 4e438bebc975e7176adf0604e514a0e22f6bee31 Mon Sep 17 00:00:00 2001 From: WolfQuery Date: Tue, 14 Apr 2026 19:29:56 +0200 Subject: finished confgiuring steam runtime for herra --- hosts/herra/steam.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/herra/steam.nix b/hosts/herra/steam.nix index a916af3..e3d5142 100644 --- a/hosts/herra/steam.nix +++ b/hosts/herra/steam.nix @@ -1,21 +1,27 @@ -{lib, ...}: { +{lib, pkgs, ...}: { programs.steam = { enable = true; - remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play - dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server - localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers + package = pkgs.steam.override { + extraEnv = { + LD_PRELOAD = "${pkgs.gamemode.lib}/lib/libgamemodeauto.so"; + }; + extraLibraries = pkgs: with pkgs; [ + gamemode + ]; + }; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; }; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ - # Allow some unfree dependencies "steam" "steam-original" "steam-unwrapped" "steam-run" ]; - # Allow steam to execute appimage games programs.appimage.enable = true; programs.appimage.binfmt = true; -} +} \ No newline at end of file -- cgit v1.2.3 From 7000bb210b405aebab3e21927ec69f13d0612c5b Mon Sep 17 00:00:00 2001 From: WolfQuery Date: Tue, 14 Apr 2026 19:35:01 +0200 Subject: added configuration for the nix store (on a separate partition labeled nixstore to enable all btrfs compression --- hosts/herra/configuration.nix | 1 + hosts/herra/file-system.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 hosts/herra/file-system.nix diff --git a/hosts/herra/configuration.nix b/hosts/herra/configuration.nix index 2857ca1..34e1c32 100644 --- a/hosts/herra/configuration.nix +++ b/hosts/herra/configuration.nix @@ -5,6 +5,7 @@ }: { imports = [ ./hardware-configuration.nix + ./file-system.nix ./packages.nix ./audio.nix ./drivers.nix diff --git a/hosts/herra/file-system.nix b/hosts/herra/file-system.nix new file mode 100644 index 0000000..71a77fd --- /dev/null +++ b/hosts/herra/file-system.nix @@ -0,0 +1,7 @@ +{...}: { + fileSystems."/nix" = { + device = "/dev/disk/by-label/nixstore"; + fsType = "btrfs"; + options = [ "subvol=@nix" "compress=zstd:3" "noatime" ]; +}; +} \ No newline at end of file -- cgit v1.2.3