mirror of
https://github.com/ryantm/agenix.git
synced 2024-09-17 17:17:14 +03:00
Clean-up Darwin integration test
This commit is contained in:
parent
3fbc22fe43
commit
19bf5a20d8
@ -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 New Issue
Block a user