From 41f670b2bb86375a88e56aaf8e80a66192d298aa Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 00:13:45 +1100 Subject: [PATCH 1/6] Update how amdvlk is installed to more modern option --- nixos/configuration.nix | 1 + nixos/hardware-configuration.nix | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7b11ade..c4ca49a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -327,6 +327,7 @@ environment.sessionVariables = { # === Prefer RADV driver === AMD_VULKAN_ICD = "RADV"; + VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"; FLAKE = "/home/buymymojo/etc/nixos/"; diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index 4772e9d..c6add96 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -200,12 +200,11 @@ # === vulkan/mesa === # === amdvlk driver === - extraPackages = with pkgs; [ - amdvlk - ]; - extraPackages32 = with pkgs; [ - driversi686Linux.amdvlk - ]; + }; + amdgpu.amdvlk = { + enable = true; + support32Bit.enable = true; + }; # === amdvlk driver === }; From bea9909fc0ab7a37b040bc9b11b8635e717a836d Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 00:14:16 +1100 Subject: [PATCH 2/6] Move main mangohud install over to home-manager --- nixos/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index c4ca49a..888e982 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -207,7 +207,7 @@ unstable.nix-your-shell amdgpu_top - mangohud + # unstable.mangohud unstable.svt-av1-psy unstable.ffmpeg-full From 03bc3ff44a734114b7fe26911e0ed91338bb895b Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 00:14:39 +1100 Subject: [PATCH 3/6] Add a copy of gamemode and mangohud to steam as extra packages to fix compat --- nixos/configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 888e982..9c162db 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -171,6 +171,15 @@ programs.steam = { enable = true; + package = pkgs.steam.override { + extraPkgs = (pkgs: with pkgs; [ + gamemode + mangohud + # additional packages... + # e.g. some games require python3 + ]); + }; + 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 From 37d2f38926619310224cd6d00112fe5c7ce066b1 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 00:14:53 +1100 Subject: [PATCH 4/6] Add steam-hardware and gamescope --- nixos/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 9c162db..8485996 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -186,6 +186,8 @@ }; programs.steam.gamescopeSession.enable = true; programs.steam.protontricks.enable = true; + hardware.steam-hardware.enable = true; + programs.gamescope.enable = true; programs.gamemode.enable = true; programs.gnupg.agent = { From dc7b557fcca9a0113dfc0f9c7357e227c1aa19a6 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 00:15:21 +1100 Subject: [PATCH 5/6] Add comments for other kernels for testing (and for xanmod once they actually hit 6.14 lol) --- nixos/configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 8485996..e50c4a8 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -33,6 +33,9 @@ # Use the latest linux Kernel boot.kernelPackages = pkgs.linuxPackages_latest; + # boot.kernelPackages = unstable.linuxPackages_xanmod_latest; + # boot.kernelPackages = pkgs.linuxPackages_6_14; + # boot.kernelPackages = pkgs.linuxPackages_6_13; # Bootloader. boot.loader.systemd-boot.enable = true; From 04f1310c0a68aa7912c6fd175c2c441bd6b3cc89 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Sun, 30 Mar 2025 00:16:14 +1100 Subject: [PATCH 6/6] Disable open razer for linux 6.14 incompat --- nixos/configuration.nix | 4 ++-- nixos/hardware-configuration.nix | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index e50c4a8..91938ad 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -56,7 +56,7 @@ i18n = { - # Select internationalisation properties. + # Select internationalisation properties. defaultLocale = "C.UTF-8"; extraLocaleSettings = { @@ -230,7 +230,7 @@ vscode.fhs # .fhs version will be more compatable even if slightly less nix flavoured - openrazer-daemon + # unstable.openrazer-daemon # Broken, enable again in a few days? # === nix related === comma diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index c6add96..50f10fe 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -205,11 +205,9 @@ enable = true; support32Bit.enable = true; }; - # === amdvlk driver === + # === amdvlk driver === - }; - - openrazer.enable = true; + # openrazer.enable = true; }; }