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;
};
};
};
}

View file

@ -13,7 +13,7 @@ in
name = "ooksdesk"; name = "ooksdesk";
type = "desktop"; type = "desktop";
role = "workstation"; role = "workstation";
profiles = [ "gaming" "creative" "console-tools" ]; profiles = [ "gaming" "creative" "media" "console-tools" ];
admin = { admin = {
name = "ooks"; name = "ooks";
shell = "fish"; shell = "fish";

View file

@ -15,7 +15,7 @@ in
name = "ookst480s"; name = "ookst480s";
type = "laptop"; type = "laptop";
role = "workstation"; role = "workstation";
profiles = [ "console-tools" ]; profiles = [ "console-tools" "media" ];
admin = { admin = {
name = "ooks"; name = "ooks";
shell = "fish"; shell = "fish";

View file

@ -26,7 +26,7 @@ in
}; };
profiles = mkOption { profiles = mkOption {
type = listOf (enum ["gaming" "creative" "productivity" "console-tools" "media-server"]); type = listOf (enum ["gaming" "creative" "productivity" "console-tools" "media" "media-server"]);
default = []; default = [];
}; };