nixcfg/modules/nixos/suites/games/default.nix

29 lines
590 B
Nix
Raw Normal View History

2024-01-11 11:26:46 +01:00
{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let
cfg = config.plusultra.suites.games;
apps = {
steam = enabled;
prismlauncher = enabled;
lutris = enabled;
winetricks = enabled;
protontricks = enabled;
doukutsu-rs = enabled;
bottles = enabled;
};
cli-apps = {
wine = enabled;
proton = enabled;
};
in
{
options.plusultra.suites.games = with types; {
enable =
mkBoolOpt false "Whether or not to enable common games configuration.";
};
config = mkIf cfg.enable { plusultra = { inherit apps cli-apps; }; };
}