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";
|
||||
type = "desktop";
|
||||
role = "workstation";
|
||||
profiles = [ "gaming" "creative" "console-tools" ];
|
||||
profiles = [ "gaming" "creative" "media" "console-tools" ];
|
||||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ in
|
|||
name = "ookst480s";
|
||||
type = "laptop";
|
||||
role = "workstation";
|
||||
profiles = [ "console-tools" ];
|
||||
profiles = [ "console-tools" "media" ];
|
||||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue