Kavita config

This commit is contained in:
Filippo Berto 2023-10-07 17:25:35 +02:00
parent b83249e23f
commit 0d02437fd6
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
4 changed files with 28 additions and 2 deletions

10
modules/nixos/kavita.nix Normal file
View file

@ -0,0 +1,10 @@
{ lib, config, ... }: {
age.secrets.kavita_token = { file = ../../secrets/kavita_token.age; owner = "kavita"; };
services.kavita = { enable = true; tokenKeyFile = config.age.secrets.kavita_token.path; };
networking.firewall.allowedTCPPorts = lib.optionals config.services.kavita.enable [
config.services.kavita.port
];
}