Refactor isso configuration to use structured server settings and update service dependencies

This commit is contained in:
Danilo Reyes
2025-12-25 21:05:32 -06:00
parent 2dd20fab48
commit 8e0c2783cd
2 changed files with 11 additions and 4 deletions

View File

@@ -18,13 +18,16 @@ in
inherit (cfg) enable;
settings = {
guard.require-author = true;
server.listen = "http://${cfg.ip}:${toString cfg.port}/";
server = {
listen = "http://${cfg.ip}:${toString cfg.port}/";
public-endpoint = cfg.url;
};
admin = {
enabled = true;
password = "$ISSO_ADMIN_PASSWORD";
};
general = {
host = cfg.url;
host = "https://blog.${cfg.domain}";
max-age = "1h";
notify = "smtp";
reply-notifications = true;
@@ -41,6 +44,10 @@ in
};
};
};
systemd.services.isso.serviceConfig.EnvironmentFile = config.sops.secrets.isso.path;
systemd.services.isso = {
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig.EnvironmentFile = config.sops.secrets.isso.path;
};
};
}

View File

@@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.my.servers.paperless;
port = config.services.paperless.port;
inherit (config.services.paperless) port;
in
{
options.my.servers.paperless.enable = lib.mkEnableOption "Paperless-ngx document management system";