Clean-up Darwin integration test

This commit is contained in:
Nathan Henrie 2023-05-03 17:25:54 -06:00 committed by Bruno BELANYI
parent 3fbc22fe43
commit 19bf5a20d8
1 changed files with 5 additions and 4 deletions

View File

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