mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
33 lines
735 B
Nix
33 lines
735 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.sslmate-agent;
|
|
|
|
in {
|
|
meta.maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
options = {
|
|
services.sslmate-agent = {
|
|
enable = mkEnableOption "sslmate-agent, a daemon for managing SSL/TLS certificates on a server";
|
|
};
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|