From fba864d9aedad5fa17c66d7a6981e26487d134c1 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Wed, 20 Mar 2024 02:22:02 +0100 Subject: [PATCH] some laptop steam experiments --- configs/thilo-laptop/nixos.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configs/thilo-laptop/nixos.nix b/configs/thilo-laptop/nixos.nix index 1048b98..d1af438 100644 --- a/configs/thilo-laptop/nixos.nix +++ b/configs/thilo-laptop/nixos.nix @@ -29,7 +29,6 @@ xserver = { enable = true; displayManager.sddm.enable = true; - displayManager.defaultSession = "plasma"; xkb = { variant = ""; layout = "us"; @@ -46,6 +45,26 @@ programs.kdeconnect.enable = true; + programs.gamescope = { + enable = true; + capSysNice = true; + }; + + programs.steam.gamescopeSession = { + enable = true; + env = { + STEAM_GAMESCOPE_VRR_SUPPORTED = "1"; + SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "0"; + }; + args = [ + "-f" + "-F fsr" + "--rt" + "--adaptive-sync" + "-O HDMI-A-1" + ]; + }; + environment.systemPackages = with pkgs; [ brlaser brgenml1lpr ]; nixpkgs.config.permittedInsecurePackages = [