From 3fbc7ba0045a6df11a1137f4e83480886b6152b0 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:02:45 +0400 Subject: [PATCH] make prismlauncher module --- modules/desktop/game/default.nix | 1 + modules/desktop/game/prismlauncher/default.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/desktop/game/prismlauncher/default.nix diff --git a/modules/desktop/game/default.nix b/modules/desktop/game/default.nix index 73acd2ff..152ba717 100644 --- a/modules/desktop/game/default.nix +++ b/modules/desktop/game/default.nix @@ -5,5 +5,6 @@ ./wine ./grapejuice ./tetrio + ./prismlauncher ]; } diff --git a/modules/desktop/game/prismlauncher/default.nix b/modules/desktop/game/prismlauncher/default.nix new file mode 100644 index 00000000..074b44ed --- /dev/null +++ b/modules/desktop/game/prismlauncher/default.nix @@ -0,0 +1,15 @@ +{ lib, config, pkgs, options, ...}: +let + cfg = config.modules.desktop.game.prismlauncher; +in +{ + options.modules.desktop.game.prismlauncher = { + enable = lib.mkEnableOption false; + }; + + config = lib.mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + prismlauncher + ]; + }; +}