Add configurable stream-tools option
This commit is contained in:
21
modules/home/stream-tools.nix
Normal file
21
modules/home/stream-tools.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user