feat: init media server system profile

This commit is contained in:
ooks-io 2024-02-12 15:32:25 +13:00
parent d2bd5abbed
commit dc8a3d5dd1
7 changed files with 71 additions and 2 deletions

View file

@ -12,6 +12,7 @@ in
./nvidia
./gaming
./laptop
./mediaServer
];
options = {
@ -33,6 +34,9 @@ in
nvidia = {
enable = lib.mkEnableOption "Enable the nvidia profile";
};
mediaServer = {
enable = lib.mkEnableOption "Enable the mediaServer profile";
};
};
};

View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
let
cfg = config.systemProfile.mediaServer;
in
{
imports = [
../../modules
];
config = lib.mkIf cfg.enable {
systemModules = {
services = {
jellyfin.enable = true;
};
};
};
}