blob: 50b5c628843aec14558a3c8bd950668824eabf53 (
plain) (
tree)
|
|
{
config,
options,
lib,
pkgs,
...
}: let
gamesConf = config.modules.desktop.apps.games;
configDir = config.nixosConfig.configDir;
in {
options.modules.desktop.apps.games = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
steam.enable = lib.mkOption {
type = lib.types.bool;
default = true;
};
};
config = lib.mkIf (gamesConf.enable) {
home.packages = [
pkgs.steam-run
];
programs.steam = lib.mkIf (gamesConf.steam.enable) {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = true;
};
};
}
|