about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorFlakebi <flakebi@t-online.de>2023-04-19 22:46:14 +0200
committerKerstin <kerstin@erictapen.name>2023-04-20 02:32:37 +0200
commit603e89eef935b22754e1406364ba0921997c71c4 (patch)
tree1a2b8f8d7d635df5767cacbe56221f1037912576 /nixos/tests
parentf864e4613b5275a9a987b0fe733acac7be014a45 (diff)
kanidm: BindMount certificate paths
Bind mount the base dirs of the tls key and chain into the service.

Make sure to bind every directory just once. The test failed on ofborg
when /nix/store and the certificate path in /nix/store/<some path> were
bound.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/kanidm.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/kanidm.nix b/nixos/tests/kanidm.nix
index 33c65026b9b1a..d9c0542c4c2e0 100644
--- a/nixos/tests/kanidm.nix
+++ b/nixos/tests/kanidm.nix
@@ -44,7 +44,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
         };
       };
 
-      networking.hosts."${nodes.server.config.networking.primaryIPAddress}" = [ serverDomain ];
+      networking.hosts."${nodes.server.networking.primaryIPAddress}" = [ serverDomain ];
 
       security.pki.certificateFiles = [ certs.ca.cert ];
     };
@@ -56,7 +56,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
         # We need access to the config file in the test script.
         filteredConfig = pkgs.lib.converge
           (pkgs.lib.filterAttrsRecursive (_: v: v != null))
-          nodes.server.config.services.kanidm.serverSettings;
+          nodes.server.services.kanidm.serverSettings;
         serverConfigFile = (pkgs.formats.toml { }).generate "server.toml" filteredConfig;
 
       in