OBS: Add obs

This commit is contained in:
PapaTutuWawa 2022-05-22 20:42:18 +02:00
parent 55dcc4e3dc
commit 32ab8d5ab2
3 changed files with 23 additions and 3 deletions

View File

@ -52,7 +52,7 @@
vortex-wrapped
zoom-vm
];
ptw = {
programs = {
bluray.enable = true;
@ -60,7 +60,7 @@
primaryScreen = "C27F398";
enable = true;
};
#sway.enable = true;
sway.enable = true;
alacritty.enable = true;
emacs.enable = true;
firefox.enable = true;
@ -76,6 +76,7 @@
office.enable = true;
plasma.enable = true;
gaming.enable = true;
obs.enable = true;
};
services = {
gamemode.enable = true;
@ -116,7 +117,7 @@
};
boot = let
kernel = pkgs.linuxPackages_zen;
kernel = pkgs.linuxPackages_xanmod;
in {
extraModprobeConfig = ''
options kvm_amd nested=1

View File

@ -25,6 +25,7 @@
./programs/gaming
./programs/bluray
./programs/direnv
./programs/obs
# Services
./services/kanshi

View File

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
let
cfg = config.ptw.programs.obs;
in {
options.ptw.programs.obs = {
enable = lib.mkEnableOption "Configure OBS Studio";
};
config = lib.mkIf cfg.enable {
home-manager.users.${config.ptw.system.singleUser}.programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs obs-vkcapture
];
};
};
}