2022-03-28 23:41:18 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.sslmate-agent;
|
|
|
|
|
|
|
|
in {
|
|
|
|
meta.maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.sslmate-agent = {
|
2022-08-28 19:18:44 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "sslmate-agent, a daemon for managing SSL/TLS certificates on a server");
|
2022-03-28 23:41:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [ sslmate-agent ];
|
|
|
|
|
|
|
|
systemd = {
|
|
|
|
packages = [ pkgs.sslmate-agent ];
|
|
|
|
services.sslmate-agent = {
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
ConfigurationDirectory = "sslmate-agent";
|
|
|
|
LogsDirectory = "sslmate-agent";
|
|
|
|
StateDirectory = "sslmate-agent";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|