From cb8a6c998df27b585a9ece2340d331b13c663005 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 28 Sep 2022 21:08:20 +0200 Subject: [PATCH] modules/akne: Make akne work again and make the module usable --- modules/akne/default.nix | 18 ++++++++++++++++-- modules/default.nix | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/akne/default.nix b/modules/akne/default.nix index d14bbc1..4b6b99a 100644 --- a/modules/akne/default.nix +++ b/modules/akne/default.nix @@ -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 ) ); }; diff --git a/modules/default.nix b/modules/default.nix index a36ab10..112288f 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -3,6 +3,7 @@ { imports = [ ./policyrouting + ./akne ./anycast_healthchecker ./chisel ./gre-tunnel