36 lines
888 B
Nix
36 lines
888 B
Nix
{ pkgs, config, ... }: {
|
|
programs.obs-studio = {
|
|
enable = true;
|
|
#enableVirtualCamera = true;
|
|
plugins = with pkgs.obs-studio-plugins; [
|
|
wlrobs
|
|
obs-pipewire-audio-capture
|
|
obs-vkcapture
|
|
obs-source-clone
|
|
obs-move-transition
|
|
obs-composite-blur
|
|
obs-backgroundremoval
|
|
];
|
|
};
|
|
|
|
# Create Videos directory for OBS recordings
|
|
home.file."Videos/.keep".text = "";
|
|
|
|
# Configure OBS to use ~/Videos for recordings
|
|
home.file.".config/obs-studio/basic/profiles/Untitled/basic.ini" = {
|
|
text = ''
|
|
[Output]
|
|
FilePath=${config.home.homeDirectory}/Videos
|
|
FilenameFormatting=%CCYY-%MM-%DD %HH-%mm-%SS
|
|
'';
|
|
};
|
|
|
|
# Also set the global OBS settings to use Videos directory
|
|
home.file.".config/obs-studio/global.ini" = {
|
|
text = ''
|
|
[General]
|
|
RecordPath=${config.home.homeDirectory}/Videos
|
|
'';
|
|
};
|
|
}
|