changes to gamescope
This commit is contained in:
parent
3c83c0a928
commit
4c7d54629a
5 changed files with 45 additions and 6 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -229,17 +229,17 @@
|
|||
"niri-blur": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1772873838,
|
||||
"narHash": "sha256-pFh7J2fBqsZvZrD26zfOj30qTM8+7PLZsNSLX+VOcUA=",
|
||||
"lastModified": 1772514470,
|
||||
"narHash": "sha256-nSrfHwbjg8/Rfx5pqDqU8bL5IWh99MsvxfjNZYxqEFw=",
|
||||
"owner": "niri-wm",
|
||||
"repo": "niri",
|
||||
"rev": "5393902dd22e9d540438ee178775f1e488eea724",
|
||||
"rev": "c837d944f0cc08580ee86574dd0c3a68ca9379a4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "niri-wm",
|
||||
"ref": "wip/branch",
|
||||
"repo": "niri",
|
||||
"rev": "c837d944f0cc08580ee86574dd0c3a68ca9379a4",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
};
|
||||
|
||||
niri-blur = {
|
||||
url = "github:niri-wm/niri/wip/branch";
|
||||
url = "github:niri-wm/niri/c837d944f0cc08580ee86574dd0c3a68ca9379a4";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
|
|
|
|||
28
packages/gamescope/default.nix
Normal file
28
packages/gamescope/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
gamescope,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
let
|
||||
rev = "9416ca9334da7ff707359e5f6aa65dcfff66aa01";
|
||||
in
|
||||
gamescope.overrideAttrs (oldAttrs: {
|
||||
version = "unstable-20251206105151-9416ca";
|
||||
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "ValveSoftware";
|
||||
repo = "gamescope";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-bZXyNmhLG1ZcD9nNKG/BElp6I57GAwMSqAELu2IZnqA=";
|
||||
};
|
||||
|
||||
# Unsure if this bit is necessary, though I guess it's nice to have the version gamescope shows match
|
||||
postPatch = (oldAttrs.postPatch or "") + ''
|
||||
substituteInPlace src/meson.build \
|
||||
--replace-fail "'git', 'describe', '--always', '--tags', '--dirty=+'" "'echo', '${rev}'"
|
||||
|
||||
patchShebangs default_extras_install.sh
|
||||
'';
|
||||
})
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
final: prev: {
|
||||
spotify-webapp = final.callPackage ./spotify-webapp { };
|
||||
bibata-cursor = final.callPackage ./bibata-cursor { };
|
||||
gamescope-unstable = final.callPackage ./gamescope { };
|
||||
|
||||
openmw-unstable = prev.openmw.overrideAttrs (oldAttrs: {
|
||||
pname = "openmw";
|
||||
|
|
|
|||
|
|
@ -51,8 +51,18 @@
|
|||
programs = {
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
package = pkgs.gamescope-unstable;
|
||||
capSysNice = false;
|
||||
args = [
|
||||
"--output-width 3840"
|
||||
"--nested-width 3840"
|
||||
"--output-height 2160"
|
||||
"--nested-height 2160"
|
||||
"--expose-wayland"
|
||||
"--fullscreen"
|
||||
];
|
||||
};
|
||||
gamemode.enable = true;
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue