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]; }