diff --git a/home/profiles/suites/media.nix b/home/profiles/suites/media.nix new file mode 100644 index 0000000..87331f0 --- /dev/null +++ b/home/profiles/suites/media.nix @@ -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; + }; + }; + }; +} diff --git a/hosts/ooksdesk/default.nix b/hosts/ooksdesk/default.nix index 6206b65..7e3350f 100644 --- a/hosts/ooksdesk/default.nix +++ b/hosts/ooksdesk/default.nix @@ -13,7 +13,7 @@ in name = "ooksdesk"; type = "desktop"; role = "workstation"; - profiles = [ "gaming" "creative" "console-tools" ]; + profiles = [ "gaming" "creative" "media" "console-tools" ]; admin = { name = "ooks"; shell = "fish"; diff --git a/hosts/ookst480s/default.nix b/hosts/ookst480s/default.nix index f019e5b..fd6d255 100644 --- a/hosts/ookst480s/default.nix +++ b/hosts/ookst480s/default.nix @@ -15,7 +15,7 @@ in name = "ookst480s"; type = "laptop"; role = "workstation"; - profiles = [ "console-tools" ]; + profiles = [ "console-tools" "media" ]; admin = { name = "ooks"; shell = "fish"; diff --git a/nixos/options/host.nix b/nixos/options/host.nix index 84218d6..500f8a8 100644 --- a/nixos/options/host.nix +++ b/nixos/options/host.nix @@ -26,7 +26,7 @@ in }; profiles = mkOption { - type = listOf (enum ["gaming" "creative" "productivity" "console-tools" "media-server"]); + type = listOf (enum ["gaming" "creative" "productivity" "console-tools" "media" "media-server"]); default = []; };