nixos-config/roles/creative.nix

49 lines
890 B
Nix
Raw Normal View History

2025-06-03 16:14:23 +02:00
{
lib,
pkgs,
config,
username,
home-manager,
...
}:
2024-12-20 20:11:22 +01:00
with lib;
let
cfg = config.liv.creative;
2025-06-03 16:14:23 +02:00
in
{
2024-12-20 20:11:22 +01:00
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
];
})
];
2024-12-20 20:11:22 +01:00
home-manager = {
users.${username} = {
home.packages = with pkgs; [
gimp
darktable
audacity
kdePackages.kdenlive
orca-slicer
2025-06-03 16:14:23 +02:00
freecad
2024-12-20 20:11:22 +01:00
];
};
};
};
}