From 1c7aba3cc1de2300351bd3c6581af4e0bcbda06a Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 15 Nov 2023 02:01:46 -0500 Subject: [PATCH] tsuki: add nix-gaming modules --- hosts/tsuki/default.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/hosts/tsuki/default.nix b/hosts/tsuki/default.nix index 44f4120..01277f3 100755 --- a/hosts/tsuki/default.nix +++ b/hosts/tsuki/default.nix @@ -1,9 +1,12 @@ { + inputs, config, pkgs, ... }: { imports = [ + inputs.nix-gaming.nixosModules.steamCompat + inputs.nix-gaming.nixosModules.pipewireLowLatency ./hardware-configuration.nix ./services ../../home/wayland/hyprland/wayland.nix @@ -52,17 +55,6 @@ }; }; - environment.etc = { - "pipewire/pipewire.conf.d/92-low-latency.conf".text = '' - context.properties = { - default.clock.rate = 48000 - default.clock.quantum = 1024 - default.clock.min-quantum = 16 - default.clock.max-quantum = 2048 - } - ''; - }; - services.pcscd.enable = true; services.davfs2.enable = true; @@ -75,10 +67,18 @@ alsa.support32Bit = true; pulse.enable = true; wireplumber.enable = true; + lowLatency = { + enable = true; + quantum = 64; + rate = 48000; + }; }; programs.steam = { enable = true; + extraCompatPackages = [ + inputs.nix-gaming.packages.${pkgs.system}.proton-ge + ]; }; security.polkit.enable = true; @@ -92,7 +92,7 @@ nvidia = { powerManagement.enable = true; modesetting.enable = true; - package = config.boot.kernelPackages.nvidiaPackages.stable; + package = config.boot.kernelPackages.nvidiaPackages.production; }; opengl = { enable = true; @@ -115,5 +115,6 @@ pinentry-gtk2 jdk17 comma + inputs.matugen.packages.${system}.default ]; }