diff --git a/hosts/chris-pc/default.nix b/hosts/chris-pc/default.nix index 03339ea..77ffeb6 100644 --- a/hosts/chris-pc/default.nix +++ b/hosts/chris-pc/default.nix @@ -23,6 +23,7 @@ email.enable = true; office.enable = true; steam.enable = true; + recording.enable = true; }; terminal = { diff --git a/modules/desktop/applications/recording.nix b/modules/desktop/applications/recording.nix new file mode 100644 index 0000000..557eb64 --- /dev/null +++ b/modules/desktop/applications/recording.nix @@ -0,0 +1,21 @@ +{ options, config, lib, pkgs, ... }: +let + inherit (lib.modules) mkIf mkForce mkMerge; + inherit (lib.attrsets) attrValues; + + cfg = config.modules.desktop.applications.recording; +in +{ + options.modules.desktop.applications.recording = let + inherit (lib.options) mkEnableOption; + in { + enable = mkEnableOption "Enable recording software (OBS Studio)"; + }; + + config = mkIf cfg.enable + { + user.packages = attrValues { + inherit (pkgs) obs-studio obs-stuio-plugins.wlrobs; + }; + }; +}