mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
16 lines
364 B
Nix
16 lines
364 B
Nix
{config, lib, ...}: let
|
|
inherit (lib.modules) mkIf mkDefault;
|
|
cfg = config.services.tautulli;
|
|
in {
|
|
services.tautulli = {
|
|
enable = mkDefault true;
|
|
port = mkDefault 8181;
|
|
};
|
|
systemd.services.tautulli = mkIf cfg.enable {
|
|
serviceConfig = {
|
|
BindPaths = [
|
|
"/mnt/caches/plex/tautulli/cache:${cfg.dataDir}/cache"
|
|
];
|
|
};
|
|
};
|
|
}
|