Enable gamescope wayland/xwayland shell in desktop.nix by default

This commit is contained in:
Evie Litherland-Smith 2024-05-27 19:18:30 +01:00
parent eb706990f7
commit eaf256511d
3 changed files with 8 additions and 9 deletions

View file

@ -5,6 +5,7 @@
}: { }: {
imports = [./laptop.nix]; imports = [./laptop.nix];
boot = { boot = {
initrd.kernelModules = ["amdgpu"];
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback]; extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
extraModprobeConfig = '' extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1 options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1

View file

@ -15,14 +15,8 @@
steam-hardware.enable = true; steam-hardware.enable = true;
}; };
services.ollama.enable = true; services.ollama.enable = true;
programs = { programs.steam = {
gamescope = { enable = true;
enable = true; remotePlay.openFirewall = true;
capSysNice = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
};
}; };
} }

View file

@ -62,6 +62,10 @@
(old: {passthru.providedSessions = ["sway"];}); (old: {passthru.providedSessions = ["sway"];});
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
}; };
gamescope = {
enable = true;
capSysNice = true;
};
xwayland.enable = true; xwayland.enable = true;
}; };
gtk.iconCache.enable = true; gtk.iconCache.enable = true;