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

@@ -28,7 +28,6 @@
../hdd-spindown.nix
../logging.nix
../motd.nix
../static-ip.nix
];
custom = {
@@ -44,7 +43,10 @@
settings.enable = true;
};
services = {
kavita.enable = true;
kavita = {
enable = true;
dir = "/mnt/1tbssd/kavita";
};
};
hardware = {
firmware.enable = true;

View File

@@ -11,11 +11,11 @@ in
description = "ipv4 address";
};
dns = lib.mkOption {
default = types.str;
type = types.str;
description = "ip of the dns server";
};
interface = lib.mkOption {
default = types.str;
type = types.str;
description = "interface to apply the change to";
};
};

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 {