Move obs-studio config to module.

This commit is contained in:
CronyAkatsuki 2025-02-01 22:38:21 +01:00
parent 5eae750d76
commit 681eb44624
3 changed files with 22 additions and 8 deletions

View File

@ -28,14 +28,6 @@
# Install librewolf # Install librewolf
programs.librewolf.enable = true; programs.librewolf.enable = true;
# Install obs-studio
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-vkcapture
];
};
# Install nh # Install nh
programs.nh = { programs.nh = {
enable = true; enable = true;

View File

@ -6,6 +6,7 @@
./tmux.nix ./tmux.nix
./nnn.nix ./nnn.nix
./mpv.nix ./mpv.nix
./obs-studio.nix
]; ];
crony.mangohud.enable = lib.mkDefault true; crony.mangohud.enable = lib.mkDefault true;
@ -14,4 +15,5 @@
crony.tmux.enable = lib.mkDefault true; crony.tmux.enable = lib.mkDefault true;
crony.nnn.enable = lib.mkDefault true; crony.nnn.enable = lib.mkDefault true;
crony.mpv.enable = lib.mkDefault true; crony.mpv.enable = lib.mkDefault true;
crony.obs-studio.enable = lib.mkDefault true;
} }

View File

@ -0,0 +1,20 @@
{
config,
pkgs,
lib,
...
}: {
options = {
crony.obs-studio.enable = lib.mkEnableOption "Enable obs and install plugins.";
};
config = lib.mkIf config.crony.obs-studio.enable {
# Install obs-studio
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-vkcapture
];
};
};
}