blob: 2f44f20ede4407d40b28e4c2e71982aec3605891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ options, config, lib, namespace, ... }:
with lib; with lib.${namespace}; let
cfg = config.${namespace}.suites.media;
desktop = config.${namespace}.desktop;
in {
options.${namespace}.suites.media = with types; {
enable = mkEnableOption "media";
};
config = mkIf cfg.enable {
cxl = {
apps = mkIf desktop.enable {
feh.enable = true;
mpv.enable = true;
cmus.enable = true;
jellyfin.enable = true;
};
tools = {
ffmpeg.enable = true;
};
};
};
}
|