mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-24 02:28:30 +03:00
Clean-up Darwin integration test
This commit is contained in:
parent
3fbc22fe43
commit
19bf5a20d8
1 changed files with 5 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue