mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-24 10:38:29 +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 {
|
testScript = pkgs.writeShellApplication {
|
||||||
name = "agenix-integration";
|
name = "agenix-integration";
|
||||||
text = ''
|
text = ''
|
||||||
grep ${secret} ${config.age.secrets.secret1.path}
|
grep "${secret}" "${config.age.secrets.system-secret.path}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
@ -19,9 +19,10 @@ in {
|
||||||
|
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
|
|
||||||
age.identityPaths = options.age.identityPaths.default ++ ["/etc/ssh/this_key_wont_exist"];
|
age = {
|
||||||
|
identityPaths = options.age.identityPaths.default ++ ["/etc/ssh/this_key_wont_exist"];
|
||||||
age.secrets.secret1.file = ../example/secret1.age;
|
secrets.system-secret.file = ../example/secret1.age;
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = [testScript];
|
environment.systemPackages = [testScript];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue