mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-27 14:30:14 +01:00
48 lines
890 B
Nix
48 lines
890 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
username,
|
|
home-manager,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.liv.creative;
|
|
in
|
|
{
|
|
options.liv.creative = {
|
|
enable = mkEnableOption "Enable creative workflow";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.obs-studio = {
|
|
enable = true;
|
|
enableVirtualCamera = true;
|
|
};
|
|
environment.systemPackages = [
|
|
(pkgs.wrapOBS {
|
|
plugins = with pkgs.obs-studio-plugins; [
|
|
wlrobs
|
|
obs-backgroundremoval
|
|
obs-pipewire-audio-capture
|
|
obs-vaapi # optional AMD hardware acceleration
|
|
obs-gstreamer
|
|
obs-vkcapture
|
|
];
|
|
})
|
|
];
|
|
home-manager = {
|
|
users.${username} = {
|
|
home.packages = with pkgs; [
|
|
gimp
|
|
darktable
|
|
audacity
|
|
kdePackages.kdenlive
|
|
orca-slicer
|
|
freecad
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|