From 7e182c1b0f19ca90c23c12a39689275274e9584b Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 3 Oct 2024 08:44:56 +0400 Subject: [PATCH] desktop/game: init osu --- modules/desktop/game/default.nix | 10 ++-------- modules/desktop/game/osu/default.nix | 9 +++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 modules/desktop/game/osu/default.nix diff --git a/modules/desktop/game/default.nix b/modules/desktop/game/default.nix index 152ba717..1a840186 100644 --- a/modules/desktop/game/default.nix +++ b/modules/desktop/game/default.nix @@ -1,10 +1,4 @@ { - imports = [ - ./steam - ./lutris - ./wine - ./grapejuice - ./tetrio - ./prismlauncher - ]; + imports = + [ ./steam ./lutris ./wine ./grapejuice ./tetrio ./prismlauncher ./osu ]; } diff --git a/modules/desktop/game/osu/default.nix b/modules/desktop/game/osu/default.nix new file mode 100644 index 00000000..11287ac8 --- /dev/null +++ b/modules/desktop/game/osu/default.nix @@ -0,0 +1,9 @@ +{ outputs, options, config, lib, pkgs, ... }: +let cfg = config.modules.desktop.game.osu; +in { + options.modules.desktop.game.osu = { enable = lib.mkEnableOption false; }; + + config = lib.mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ osu-lazer-bin ]; + }; +}