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 = {
|
options = {
|
||||||
clerie.akne = {
|
clerie.akne = {
|
||||||
enable = mkEnableOption "Makes fun stuff with the nixos acme module.";
|
enable = mkEnableOption "Makes fun stuff with the nixos acme module.";
|
||||||
selfSigneOnlyHostNames = mkOption {
|
selfSignedOnlyHostNames = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = {};
|
default = {};
|
||||||
description = "List of hostnames for which the acme client gets disabled. This hostnames use the self-signed certs instead.";
|
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 = [
|
imports = [
|
||||||
./policyrouting
|
./policyrouting
|
||||||
|
./akne
|
||||||
./anycast_healthchecker
|
./anycast_healthchecker
|
||||||
./chisel
|
./chisel
|
||||||
./gre-tunnel
|
./gre-tunnel
|
||||||
|
Loading…
Reference in New Issue
Block a user