forked from fediversity/fediversity
fix primaryIPAddress
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
6f58d38c45
commit
e47642ea5c
1 changed files with 4 additions and 2 deletions
|
|
@ -78,6 +78,8 @@ in
|
|||
./targetResource.nix
|
||||
];
|
||||
|
||||
acmeNodeIP = config.nodes.acme.networking.primaryIPAddress;
|
||||
|
||||
nodes = lib.mkMerge [
|
||||
{
|
||||
deployer = lib.mkMerge [
|
||||
|
|
@ -86,7 +88,7 @@ in
|
|||
_module.args = { inherit inputs sources; };
|
||||
enableAcme = config.enableAcme;
|
||||
}
|
||||
(lib.mkIf config.enableAcme rec {
|
||||
(lib.mkIf config.enableAcme {
|
||||
acmeNodeIP = config.nodes.acme.networking.primaryIPAddress;
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
|
|
@ -96,7 +98,7 @@ in
|
|||
security.pki.certificateFiles = [
|
||||
(import "${inputs.nixpkgs}/nixos/tests/common/acme/server/snakeoil-certs.nix").ca.cert
|
||||
];
|
||||
networking.extraHosts = "${acmeNodeIP} acme.test";
|
||||
networking.extraHosts = "${config.acmeNodeIP} acme.test";
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue