2024-09-09 15:19:57 +02:00
|
|
|
{
|
2025-01-23 14:13:19 +01:00
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.services.vm_jellyfin;
|
|
|
|
in {
|
2024-09-09 15:19:57 +02:00
|
|
|
options.services.vm_jellyfin = {
|
|
|
|
enable = lib.mkEnableOption "Enable minimal config";
|
|
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
2025-01-23 14:13:19 +01:00
|
|
|
environment.systemPackages = [pkgs.cifs-utils];
|
2024-09-09 15:19:57 +02:00
|
|
|
services.jellyfin = {
|
|
|
|
enable = true;
|
|
|
|
user = "tbarnouin";
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
fileSystems."/mnt/media" = {
|
|
|
|
device = "192.168.1.125:/DATA";
|
|
|
|
fsType = "nfs";
|
|
|
|
options = [
|
|
|
|
"x-systemd.automount"
|
|
|
|
"noauto"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|