From 1745bb9f95ba0aa1e849b0807808e7c934874ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 12 Jul 2020 17:43:23 +0100 Subject: [PATCH] build nixos tests on CI. --- default.nix | 5 ++++- pkgs/sops-install-secrets/nixos-test.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 188c403..289f5e1 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,6 @@ { pkgs ? import {} }: let vendorSha256 = "sha256-O0z+oEffOOZa/bn2gV9onLVbPBHsNDH2yq1CZPi8w58="; -in { +in rec { sops-init-gpg-key = pkgs.callPackage ./pkgs/sops-init-gpg-key {}; sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets { inherit vendorSha256; @@ -9,4 +9,7 @@ in { ssh-to-pgp = pkgs.callPackage ./pkgs/ssh-to-pgp { inherit vendorSha256; }; + + nixos-tests-ssh-keys = sops-install-secrets.tests.ssh-keys; + nixos-tests-pgp-keys = sops-install-secrets.tests.pgp-keys; } diff --git a/pkgs/sops-install-secrets/nixos-test.nix b/pkgs/sops-install-secrets/nixos-test.nix index 86d3654..de5d2cd 100644 --- a/pkgs/sops-install-secrets/nixos-test.nix +++ b/pkgs/sops-install-secrets/nixos-test.nix @@ -21,7 +21,7 @@ inherit pkgs; }; - gpg-keys = makeTest { + pgp-keys = makeTest { nodes.server = { pkgs, lib, ... }: { imports = [ ../../modules/sops ]; sops.gnupgHome = "/run/gpghome";