feat(acme): add acme defaults
This commit is contained in:
parent
1b4ed807b7
commit
3424a9e802
20
global/acme/default.nix
Normal file
20
global/acme/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ pkgs
|
||||||
|
, lib
|
||||||
|
, config
|
||||||
|
, ... }: with lib; let
|
||||||
|
cfg = config.global.acme;
|
||||||
|
in {
|
||||||
|
options.global.acme = {
|
||||||
|
enable = mkEnableOption "ACME SSL certificates";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
security.acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = mkDefault "koishi@514fpv.one";
|
||||||
|
defaults.group = config.services.nginx.group;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.persistence."/nix/persist/fhs".directories = [ "/var/lib/acme" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue