feat: init media server system profile
This commit is contained in:
parent
d2bd5abbed
commit
dc8a3d5dd1
7 changed files with 71 additions and 2 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
17
system/profiles/mediaServer/default.nix
Normal file
17
system/profiles/mediaServer/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue