home: add multimedia package set based off system

- add OBS
This commit is contained in:
NullBite 2024-02-29 17:16:52 -05:00
parent 306b12b1e1
commit 71fbecf769
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
2 changed files with 31 additions and 0 deletions

View File

@ -3,5 +3,6 @@
imports = [
./communication.nix
./dev.nix
./multimedia.nix
];
}

View File

@ -0,0 +1,30 @@
{ config, lib, pkgs, osConfig ? { }, ...}:
let
cfg = config.nixfiles.packageSets.multimedia;
inherit (lib) optionals mkEnableOption mkIf;
default = osConfig ? nixfiles && osConfig.nixfiles.packageSets.multimedia.enable;
in
{
options.nixfiles.packageSets.multimedia = {
enable = lib.mkOption {
description = "Whether to enable multimedia packages";
type = lib.types.bool;
example = true;
inherit default;
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; optionals config.nixfiles.meta.graphical [
mpv
gimp-with-plugins
krita
inkscape
obs-studio
] ++ [
yt-dlp
imagemagick
ffmpeg
];
};
}