feat(nixos:profiles): add media profile
This commit is contained in:
parent
0073b44f81
commit
eb31dceac7
4 changed files with 28 additions and 3 deletions
25
home/profiles/suites/media.nix
Normal file
25
home/profiles/suites/media.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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 = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue