From ccb7a77a1cab02457b62610d80ecdbf4162d0fbc Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Sat, 26 Oct 2024 14:09:59 +0200 Subject: [PATCH] london: add Minecraft --- configurations/london/default.nix | 3 +-- modules/workstation/home-manager/games.nix | 26 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/configurations/london/default.nix b/configurations/london/default.nix index a0dc23c..71d9e55 100644 --- a/configurations/london/default.nix +++ b/configurations/london/default.nix @@ -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; }; }; }; diff --git a/modules/workstation/home-manager/games.nix b/modules/workstation/home-manager/games.nix index bc14214..f5d1bdb 100644 --- a/modules/workstation/home-manager/games.nix +++ b/modules/workstation/home-manager/games.nix @@ -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 + [ ] + ); }; }