nix-conf/system/dev/dn-server/services/paperless-ngx.nix
2026-01-20 13:41:53 +08:00

18 lines
361 B
Nix
Executable file

{ config, lib, ... }:
let
inherit (config.networking) domain;
hostname = "paperless.${domain}";
in
{
imports = [
(import ../../../modules/paperless-ngx.nix {
domain = hostname;
passwordFile = config.sops.secrets."paperless/adminPassword".path;
})
];
services.nginx.virtualHosts."${hostname}" = {
useACMEHost = domain;
};
}