home: add multimedia package set based off system
- add OBS
This commit is contained in:
parent
306b12b1e1
commit
71fbecf769
@ -3,5 +3,6 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./communication.nix
|
./communication.nix
|
||||||
./dev.nix
|
./dev.nix
|
||||||
|
./multimedia.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
30
home/package-sets/multimedia.nix
Normal file
30
home/package-sets/multimedia.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user