From c3333d9585d3fc4c954f84b1a9944b1ed4da6042 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:19:35 +0300 Subject: [PATCH] add obs --- hosts/sakotop/configuration.nix | 1 + modules/desktop/apps/default.nix | 1 + modules/desktop/apps/obs/default.nix | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 modules/desktop/apps/obs/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index d0970e1b..48f4f08c 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -37,6 +37,7 @@ calibre.enable = true; kindle-comic-converter.enable = true; mangal.enable = true; + obs.enable = true; }; chat = { discord.enable = true; diff --git a/modules/desktop/apps/default.nix b/modules/desktop/apps/default.nix index f53d3a41..ebb60d38 100644 --- a/modules/desktop/apps/default.nix +++ b/modules/desktop/apps/default.nix @@ -8,5 +8,6 @@ ./kcc ./calibre ./mangal + ./obs ]; } diff --git a/modules/desktop/apps/obs/default.nix b/modules/desktop/apps/obs/default.nix new file mode 100644 index 00000000..04251ebd --- /dev/null +++ b/modules/desktop/apps/obs/default.nix @@ -0,0 +1,21 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.desktop.apps.obs; +in { + options.modules.desktop.apps.obs = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + obs-studio + ]; + }; +}