feat(nixos:profiles): add media profile

This commit is contained in:
ooks-io 2024-06-13 00:03:03 +12:00
parent 0073b44f81
commit eb31dceac7
4 changed files with 28 additions and 3 deletions

View file

@ -0,0 +1,25 @@
{ osConfig, lib, ... }:
let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
in
{
config = mkIf (elem "media" profiles) {
ooknet.media = {
image = {
imv.enable = true;
};
video = {
mpv.enable = true;
jellyfinPlayer.enable = true;
youtube.enable = true;
};
music = {
tui.enable = true;
};
};
};
}