convert graphical folder to modules

This commit is contained in:
Kopatz
2024-04-16 21:43:24 +02:00
parent 9d79d01c5e
commit 409d684b17
17 changed files with 375 additions and 236 deletions

View File

@@ -1,20 +1,30 @@
{ pkgs, ...}:
{config, lib, pkgs, ...}:
with lib;
let
cfg = config.kop.graphical.games;
in
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
gamescopeSession.enable = true;
options.kop.graphical.games = {
enable = mkEnableOption "Enables games";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
gamescopeSession.enable = true;
};
environment.systemPackages = with pkgs; [
taisei
tetrio
osu-lazer-bin
wineWowPackages.unstableFull
winetricks
lutris
mangohud
prismlauncher
#libs
];
};
environment.systemPackages = with pkgs; [
taisei
tetrio
osu-lazer-bin
wineWowPackages.unstableFull
winetricks
lutris
mangohud
prismlauncher
#libs
];
}