feat: massive refactor
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
optionName = "all screencast tools";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"screencast"
|
||||
"all"
|
||||
];
|
||||
config' = {
|
||||
let
|
||||
cfg = config.my.desktop.screencast.all;
|
||||
in
|
||||
{
|
||||
options.my.desktop.screencast.all = {
|
||||
enable = lib.mkEnableOption "all screencast tools";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.desktop.screencast = {
|
||||
obs-studio.enable = true;
|
||||
};
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
optionName = "obs-studio";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"screencast"
|
||||
"obs-studio"
|
||||
];
|
||||
config' = {
|
||||
let
|
||||
cfg = config.my.desktop.screencast.obs-studio;
|
||||
in
|
||||
{
|
||||
options.my.desktop.screencast.obs-studio = {
|
||||
enable = lib.mkEnableOption "obs-studio";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.hm.home.packages = with pkgs; [
|
||||
(pkgs.wrapOBS {
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
|
||||
Reference in New Issue
Block a user