From 81fdef17137b9373a679926df0941d5035c2cae5 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 7 Feb 2024 07:38:06 +0400 Subject: [PATCH] asdfjkl; --- modules/desktop/game/default.nix | 1 + modules/desktop/game/tetrio/tetrio.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/desktop/game/tetrio/tetrio.nix diff --git a/modules/desktop/game/default.nix b/modules/desktop/game/default.nix index cb68edd9..73acd2ff 100644 --- a/modules/desktop/game/default.nix +++ b/modules/desktop/game/default.nix @@ -4,5 +4,6 @@ ./lutris ./wine ./grapejuice + ./tetrio ]; } diff --git a/modules/desktop/game/tetrio/tetrio.nix b/modules/desktop/game/tetrio/tetrio.nix new file mode 100644 index 00000000..1e401c9b --- /dev/null +++ b/modules/desktop/game/tetrio/tetrio.nix @@ -0,0 +1,21 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.desktop.game.tetrio; +in { + options.modules.desktop.game.tetrio = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + tetrio-desktop + ]; + }; +}