2024-08-02 23:44:40 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
{
|
2024-08-14 22:43:28 +02:00
|
|
|
options.my.games = {
|
|
|
|
wine.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
steam.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
2024-10-26 14:09:59 +02:00
|
|
|
|
|
|
|
minecraft.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
2024-08-02 23:44:40 +02:00
|
|
|
};
|
|
|
|
|
2024-10-26 14:09:59 +02:00
|
|
|
config = {
|
|
|
|
home.packages =
|
|
|
|
[ ]
|
|
|
|
++ (
|
|
|
|
if config.my.games.wine.enable then
|
|
|
|
[
|
|
|
|
pkgs.wineWowPackages.waylandFull
|
|
|
|
]
|
|
|
|
else
|
|
|
|
[ ]
|
|
|
|
)
|
|
|
|
++ (
|
|
|
|
if config.my.games.minecraft.enable then
|
|
|
|
[
|
|
|
|
pkgs.prismlauncher
|
|
|
|
]
|
|
|
|
else
|
|
|
|
[ ]
|
|
|
|
);
|
2024-09-19 06:22:25 +02:00
|
|
|
};
|
2024-08-02 23:44:40 +02:00
|
|
|
}
|