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

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

View File

@ -25,6 +25,7 @@
./programs/gaming ./programs/gaming
./programs/bluray ./programs/bluray
./programs/direnv ./programs/direnv
./programs/obs
# Services # Services
./services/kanshi ./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
];
};
};
}