convert graphical folder to modules
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user