london: add Minecraft

This commit is contained in:
Victor Mignot 2024-10-26 14:09:59 +02:00
parent cf6a7cdfbf
commit ccb7a77a1c
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
2 changed files with 25 additions and 4 deletions

View file

@ -72,8 +72,6 @@
{
programs.helix.enable = true;
home.packages = with pkgs; [ (cutter.withPlugins (plugins: with plugins; [ rz-ghidra ])) ];
my.desktop.sway.monitors = [
{
name = "Iiyama North America PL2470H 0x0000047B";
@ -94,6 +92,7 @@
my.development.tools.networking.enable = true;
my.games.wine.enable = true;
my.games.steam.enable = true;
my.games.minecraft.enable = true;
};
};
};

View file

@ -16,9 +16,31 @@ with lib;
type = types.bool;
default = false;
};
minecraft.enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.my.games.wine.enable {
home.packages = with pkgs; [ wineWowPackages.waylandFull ];
config = {
home.packages =
[ ]
++ (
if config.my.games.wine.enable then
[
pkgs.wineWowPackages.waylandFull
]
else
[ ]
)
++ (
if config.my.games.minecraft.enable then
[
pkgs.prismlauncher
]
else
[ ]
);
};
}