added a obs module

This commit is contained in:
vali 2024-04-11 00:02:27 +02:00
commit b1e4cd6b6e
4 changed files with 26 additions and 0 deletions

View file

@ -22,6 +22,7 @@
mpv.enable = true; mpv.enable = true;
i3.enable = true; i3.enable = true;
schizofox.enable = true; schizofox.enable = true;
obs.enable = true;
#neovim.enable = true; #neovim.enable = true;
#git = { #git = {
# enable = true; # enable = true;

View file

@ -27,6 +27,8 @@ in {
zathura zathura
alacritty alacritty
scc scc
texliveFull
st
unzip unzip
gcc gcc
trash-cli trash-cli

View file

@ -7,5 +7,6 @@ _: {
./qt.nix ./qt.nix
./schizofox.nix ./schizofox.nix
./zathura.nix ./zathura.nix
./obs.nix
]; ];
} }

22
modules/gui/obs.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.myOptions.programs.obs;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.obs.enable = mkEnableOption "obs";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
];
};
};
};
}