nixos-conf/servers/utils/cert-store-client.nix

33 lines
841 B
Nix
Raw Normal View History

{ config, lib, ... }:
2025-05-29 02:12:20 +03:00
{
options.services.nginx.virtualHosts = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule {
config = lib.mkDefault {
sslCertificate = config.sops.secrets.cert-fullchain.path;
sslCertificateKey = config.sops.secrets.cert-key.path;
2025-05-29 02:12:20 +03:00
};
}
);
};
config = {
sops = {
secrets = {
cert-fullchain = {
sopsFile = ../../secrets/cert.yaml;
restartUnits = [ "nginx.service" ];
owner = config.services.nginx.user;
group = config.services.nginx.user;
};
cert-key = {
sopsFile = ../../secrets/cert.yaml;
restartUnits = [ "nginx.service" ];
owner = config.services.nginx.user;
group = config.services.nginx.user;
};
};
2025-05-29 02:12:20 +03:00
};
};
}