diff options
author | Domen Kožar <domen@dev.si> | 2018-09-24 20:06:31 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2018-09-24 20:07:33 +0100 |
commit | 6eacc17157fe28bb89f9d9d5d1595de4232b7ba7 (patch) | |
tree | 256dda216b0616edfa3ae8a7f45f139ab9b3498d /nixos/tests/acme.nix | |
parent | f37b39d279d111bfefbae1ba56cc97b535b93a06 (diff) |
nixos tests: move common configuration into separate file
This allows tests outside nixos to use acme setup.
Diffstat (limited to 'nixos/tests/acme.nix')
-rw-r--r-- | nixos/tests/acme.nix | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/nixos/tests/acme.nix b/nixos/tests/acme.nix index c7fd4910e072..4669a092433e 100644 --- a/nixos/tests/acme.nix +++ b/nixos/tests/acme.nix @@ -1,32 +1,5 @@ let - commonConfig = { lib, nodes, ... }: { - networking.nameservers = [ - nodes.letsencrypt.config.networking.primaryIPAddress - ]; - - nixpkgs.overlays = lib.singleton (self: super: { - cacert = super.cacert.overrideDerivation (drv: { - installPhase = (drv.installPhase or "") + '' - cat "${nodes.letsencrypt.config.test-support.letsencrypt.caCert}" \ - >> "$out/etc/ssl/certs/ca-bundle.crt" - ''; - }); - - # Override certifi so that it accepts fake certificate for Let's Encrypt - # Need to override the attribute used by simp_le, which is python3Packages - python3Packages = (super.python3.override { - packageOverrides = lib.const (pysuper: { - certifi = pysuper.certifi.overridePythonAttrs (attrs: { - postPatch = (attrs.postPatch or "") + '' - cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \ - > certifi/cacert.pem - ''; - }); - }); - }).pkgs; - }); - }; - + commonConfig = ./common/letsencrypt/common.nix; in import ./make-test.nix { name = "acme"; |