rekey secrets and update mini pc config
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user