Compare commits

..

3 commits

3 changed files with 28 additions and 12 deletions

18
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1701609479, "lastModified": 1704311514,
"narHash": "sha256-mcEnMz7XB3K57ZX16VXoEkswljSNGXdMuUu5+g8a8R8=", "narHash": "sha256-j6JsfCv31bW7LzV06q2L/27QZ4k1Zq7lEq2AR9R150A=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "e504e8d01f950776c3a3160ba38c5957a1b89e66", "rev": "fcbc70a7ee064f2b65dc1fac1717ca2a9813bbe6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -22,11 +22,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1701253981, "lastModified": 1703961334,
"narHash": "sha256-ztaDIyZ7HrTAfEEUt9AtTDNoCYxUdSd6NrRHaYOIxtk=", "narHash": "sha256-M1mV/Cq+pgjk0rt6VxoyyD+O8cOUiai8t9Q6Yyq4noY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e92039b55bcd58469325ded85d4f58dd5a4eaf58", "rev": "b0d36bd0a420ecee3bc916c91886caca87c894e9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -37,11 +37,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1703791557, "lastModified": 1704310877,
"narHash": "sha256-AUzfwY6z9B/SHjILvwQYVl5tKtCoxTvti1oRuV3zlHc=", "narHash": "sha256-xUNF4HNNvr2lGFVIGYkR8ar9EGAwwNAu9zEk757Y41U=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "d52c3b8e906cc63efe311ae6277867f7b68f3bca", "rev": "66bed8c7853673ba7919664f94a99deea137b916",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,4 +1,8 @@
{ ... }: { { ... }: {
config.modules.gaming.steam.enable = true; config.modules.gaming.steam = {
enable = true;
gamemode = true;
gamescope = true;
};
config.modules.hardware.laptop.enable = false; config.modules.hardware.laptop.enable = false;
} }

View file

@ -19,10 +19,22 @@ in
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.gamemode.enable = cfg.gamemode; programs.gamemode = {
programs.gamescope.enable = cfg.gamescope; enable = cfg.gamemode;
};
programs.gamescope = {
enable = cfg.gamescope;
capSysNice = true;
};
programs.steam = { programs.steam = {
enable = true; enable = true;
gamescopeSession = {
enable = cfg.gamescope;
args = [
"-O DP-2"
"-F fsr"
];
};
}; };
}; };
} }