Move obs-studio config to module.
This commit is contained in:
parent
5eae750d76
commit
681eb44624
@ -28,14 +28,6 @@
|
||||
# Install librewolf
|
||||
programs.librewolf.enable = true;
|
||||
|
||||
# Install obs-studio
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
obs-vkcapture
|
||||
];
|
||||
};
|
||||
|
||||
# Install nh
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
|
@ -6,6 +6,7 @@
|
||||
./tmux.nix
|
||||
./nnn.nix
|
||||
./mpv.nix
|
||||
./obs-studio.nix
|
||||
];
|
||||
|
||||
crony.mangohud.enable = lib.mkDefault true;
|
||||
@ -14,4 +15,5 @@
|
||||
crony.tmux.enable = lib.mkDefault true;
|
||||
crony.nnn.enable = lib.mkDefault true;
|
||||
crony.mpv.enable = lib.mkDefault true;
|
||||
crony.obs-studio.enable = lib.mkDefault true;
|
||||
}
|
||||
|
20
modules/home-manager/obs-studio.nix
Normal file
20
modules/home-manager/obs-studio.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user