modules/akne: Make akne work again and make the module usable
This commit is contained in:
parent
d54c8a6853
commit
cb8a6c998d
@ -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
|
||||
)
|
||||
);
|
||||
};
|
||||
|
@ -3,6 +3,7 @@
|
||||
{
|
||||
imports = [
|
||||
./policyrouting
|
||||
./akne
|
||||
./anycast_healthchecker
|
||||
./chisel
|
||||
./gre-tunnel
|
||||
|
Loading…
Reference in New Issue
Block a user