From 8f663090088b68590b645b61340122d8acffcd8b Mon Sep 17 00:00:00 2001 From: Ethan Simmons Date: Mon, 17 Jun 2024 16:53:33 -0500 Subject: [PATCH] Add minecraft to games --- flake.nix | 1 + modules/nix/games.nix | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index deb6057..b073dc9 100644 --- a/flake.nix +++ b/flake.nix @@ -96,6 +96,7 @@ games = { enable = true; lutris.enable = true; + minecraft.enable = true; }; common.nil.enable = true; diff --git a/modules/nix/games.nix b/modules/nix/games.nix index ca2e7da..290a2d3 100644 --- a/modules/nix/games.nix +++ b/modules/nix/games.nix @@ -33,6 +33,12 @@ in default = true; }; + minecraft.enable = mkOption { + description = "Whether to install minecraft launcher"; + type = types.bool; + default = false; + }; + gamescope.enable = mkOption { description = "Whether to install gamescope"; type = types.bool; @@ -51,6 +57,7 @@ in ++ optional cfg.protonup.enable protonup-qt ++ optional cfg.gamescope.enable gamescope ++ optional cfg.discord.enable vesktop + ++ optional cfg.minecraft.enable prismlauncher ++ optionals cfg.lutris.enable [ lutris wine ]; programs.steam = mkIf cfg.steam.enable {