1
0
Fork 0

modules/akne: Make akne work again and make the module usable

This commit is contained in:
clerie 2022-09-28 21:08:20 +02:00
parent d54c8a6853
commit cb8a6c998d
2 changed files with 17 additions and 2 deletions

View File

@ -9,7 +9,7 @@ in {
options = {
clerie.akne = {
enable = mkEnableOption "Makes fun stuff with the nixos acme module.";
selfSigneOnlyHostNames = mkOption {
selfSignedOnlyHostNames = mkOption {
type = with types; listOf str;
default = {};
description = "List of hostnames for which the acme client gets disabled. This hostnames use the self-signed certs instead.";
@ -34,7 +34,21 @@ in {
}
)
]
) cfg.selfSigneOnlyHostNames
) cfg.selfSignedOnlyHostNames
)
);
systemd.targets = with lib; listToAttrs (
flatten (
map (
name: [
(
nameValuePair "acme-finished-${name}" {
after = mkForce [];
requires = mkForce [];
}
)
]
) cfg.selfSignedOnlyHostNames
)
);
};

View File

@ -3,6 +3,7 @@
{
imports = [
./policyrouting
./akne
./anycast_healthchecker
./chisel
./gre-tunnel