From 19bf5a20d835145e5f3fc8d61672eefee4c33450 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Wed, 3 May 2023 17:25:54 -0600 Subject: [PATCH] Clean-up Darwin integration test --- test/integration_darwin.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/integration_darwin.nix b/test/integration_darwin.nix index 4894caa..f309667 100644 --- a/test/integration_darwin.nix +++ b/test/integration_darwin.nix @@ -8,7 +8,7 @@ testScript = pkgs.writeShellApplication { name = "agenix-integration"; text = '' - grep ${secret} ${config.age.secrets.secret1.path} + grep "${secret}" "${config.age.secrets.system-secret.path}" ''; }; in { @@ -19,9 +19,10 @@ in { services.nix-daemon.enable = true; - age.identityPaths = options.age.identityPaths.default ++ ["/etc/ssh/this_key_wont_exist"]; - - age.secrets.secret1.file = ../example/secret1.age; + age = { + identityPaths = options.age.identityPaths.default ++ ["/etc/ssh/this_key_wont_exist"]; + secrets.system-secret.file = ../example/secret1.age; + }; environment.systemPackages = [testScript]; }