Add configurable stream-tools option

This commit is contained in:
2024-11-05 13:51:12 +01:00
parent 9dab2276d6
commit d2dceba0e9
5 changed files with 129 additions and 24 deletions

View File

@@ -0,0 +1,21 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib.my-namespace) mkEnableOption mkIf;
cfg = config.my-namespace.home.stream-tools;
in {
options.my-namespace.home.stream-tools = {
enable = mkEnableOption "Enable the Stream Machine Tools";
};
config = mkIf cfg.enable {
home = {
packages = with pkgs; [
obs-studio
];
};
};
}