Split steam into separate expression

This commit is contained in:
Evie Litherland-Smith 2023-09-16 17:58:43 +01:00
parent 8cf3639160
commit e3fc4db76a
3 changed files with 26 additions and 19 deletions

View file

@ -239,7 +239,10 @@
hostName = "Northstar";
user = "xenia";
system = "x86_64-linux";
in systemConfig { inherit hostName user system; };
in systemConfig {
inherit hostName user system;
systemModules = default.systemModules ++ [ ./system/steam.nix ];
};
Ronin = let
hostName = "Ronin";
@ -253,7 +256,7 @@
system = "x86_64-linux";
in systemConfig {
inherit hostName user system;
systemModules = [ ./system/gamepass.nix ];
systemModules = [ ./system/gamescope.nix ];
serviceModules = [ ./services/sshd/default.nix ];
homeModules = [
./home/git/default.nix

View file

@ -7,7 +7,7 @@ let
--hide-cursor-delay 5 --steam -- steam -gamepadui
'';
in {
imports = [ ./desktop.nix ];
imports = [ ./desktop.nix ./steam.nix ];
services = {
blueman.enable = true;
greetd = {
@ -24,20 +24,4 @@ in {
};
};
};
hardware = {
opengl.driSupport32Bit = true;
steam-hardware.enable = true;
};
programs = {
xwayland.enable = true;
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
};
}

20
system/steam.nix Normal file
View file

@ -0,0 +1,20 @@
{ ... }:
{
hardware = {
opengl.driSupport32Bit = true;
steam-hardware.enable = true;
};
programs = {
xwayland.enable = true;
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
};
}