start move steam to seperate module
This commit is contained in:
parent
11b9c3de44
commit
6f4ec604ab
4 changed files with 88 additions and 65 deletions
18
modules/games/steam.nix
Normal file
18
modules/games/steam.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.modules.games.steam = {
|
||||
enable = lib.mkEnableOption "enable steam";
|
||||
};
|
||||
config = lib.mkIf config.modules.games.steam.enable {
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
|
||||
gamemode.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue