rekey secrets and update mini pc config

This commit is contained in:
Kopatz
2024-05-04 12:32:52 +02:00
parent 132fc1c05f
commit c2f40e2777
23 changed files with 74 additions and 58 deletions

View File

@@ -6,13 +6,23 @@ in
{
options.custom.services.kavita = {
enable = mkEnableOption "Enables kavita";
https = mkOption {
type = types.bool;
default = true;
description = "Should it use https?";
};
dir = mkOption {
default = "/data/kavita";
type = types.path;
description = "data path";
};
};
config =
let
fqdn = "kavita-kopatz.duckdns.org";
useStepCa = false; #config.services.step-ca.enable;
useHttps = true;
baseDir = "/mnt/1tbssd/kavita";
useHttps = cfg.https;
baseDir = cfg.dir;
mangal = "${pkgs.mangal}/bin/mangal";
githubRunnerEnabled = config.services.github-runners ? oberprofis.enable;
in lib.mkIf cfg.enable {