init: public
This commit is contained in:
15
modules/desktop/screencast/all.nix
Normal file
15
modules/desktop/screencast/all.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
optionName = "all screencast tools";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"screencast"
|
||||
"all"
|
||||
];
|
||||
config' = {
|
||||
my.desktop.screencast = {
|
||||
obs-studio.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
7
modules/desktop/screencast/default.nix
Normal file
7
modules/desktop/screencast/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./all.nix
|
||||
./obs-studio.nix
|
||||
];
|
||||
}
|
||||
25
modules/desktop/screencast/obs-studio.nix
Normal file
25
modules/desktop/screencast/obs-studio.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
optionName = "obs-studio";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"screencast"
|
||||
"obs-studio"
|
||||
];
|
||||
config' = {
|
||||
my.home.home.packages = with pkgs; [
|
||||
(pkgs.wrapOBS {
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-backgroundremoval
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user