task | convert some files to modules
This commit is contained in:
parent
03921b35d7
commit
37828b6801
15 changed files with 222 additions and 109 deletions
|
|
@ -1,14 +1,19 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
programs = {
|
||||
# GAMES!
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
# # Open ports in the firewall for Steam Remote Play
|
||||
# remotePlay.openFirewall = true;
|
||||
# # Open ports in the firewall for Source Dedicated Server
|
||||
# dedicatedServer.openFirewall = true;
|
||||
{ inputs, outputs, lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let cfg = config.roles.games;
|
||||
in {
|
||||
options.roles.games = { enable = mkEnableOption "roles games"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession = { enable = true; };
|
||||
# Open ports in the firewall for Steam Remote Play
|
||||
# remotePlay.openFirewall = true;
|
||||
# Open ports in the firewall for Source Dedicated Server
|
||||
# dedicatedServer.openFirewall = true;
|
||||
};
|
||||
gamemode = { enable = true; };
|
||||
};
|
||||
gamemode = { enable = true; };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue