40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ config, lib, ... }: {
|
|
|
|
options.sysconfig.virtualization.jellyfin.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.virtualization.jellyfin.enable {
|
|
|
|
containers.jellyfin = {
|
|
|
|
autoStart = true;
|
|
privateNetwork = true;
|
|
hostAddress = "192.168.100.10";
|
|
localAddress = "192.168.100.14";
|
|
|
|
bindMounts = {
|
|
"/etc/jellyfin" = {
|
|
hostPath = "/ssd1/Jellyfin";
|
|
isReadOnly = false;
|
|
};
|
|
};
|
|
|
|
config = {
|
|
|
|
services.jellyfin = {
|
|
|
|
enable = true;
|
|
dataDir = "/etc/jellyfin/data";
|
|
configDir = "/etc/jellyfin/config";
|
|
logDir = "/etc/jellyfin/log";
|
|
openFirewall = true;
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
};
|
|
};
|
|
};
|
|
}
|