grafana-alloy: don't build the frontend twice
[NixPkgs.git] / nixos / modules / services / security / sslmate-agent.nix
blob57cb955a39dd913fe3bfc28fec4f8c9dd081c28b
1 { config, lib, pkgs, ... }:
3 with lib;
5 let
6   cfg = config.services.sslmate-agent;
8 in {
9   meta.maintainers = [ ];
11   options = {
12     services.sslmate-agent = {
13       enable = mkEnableOption "sslmate-agent, a daemon for managing SSL/TLS certificates on a server";
14     };
15   };
17   config = mkIf cfg.enable {
18     environment.systemPackages = with pkgs; [ sslmate-agent ];
20     systemd = {
21       packages = [ pkgs.sslmate-agent ];
22       services.sslmate-agent = {
23         wantedBy = [ "multi-user.target" ];
24         serviceConfig = {
25           ConfigurationDirectory = "sslmate-agent";
26           LogsDirectory = "sslmate-agent";
27           StateDirectory = "sslmate-agent";
28         };
29       };
30     };
31   };