This commit is contained in:
parent
dd466c291c
commit
5a0aff41dc
2 changed files with 25 additions and 0 deletions
22
modules/homelab/jellyfin.nix
Normal file
22
modules/homelab/jellyfin.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos.server-jellyfin =
|
||||
{ config, ... }:
|
||||
let
|
||||
cfg = config.homelab.services.jellyfin;
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
options.homelab.services.jellyfin = {
|
||||
enable = mkEnableOption "Enable jellyfin";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue