351e874918
Merges work by @montchr, @cmhamill, and @rtimush and rebases on main. - fixes https://github.com/ryantm/agenix/issues/60 - fixes https://github.com/ryantm/agenix/issues/120 - closes https://github.com/ryantm/agenix/pull/107
24 lines
439 B
Nix
24 lines
439 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
secret = "hello";
|
|
testScript = pkgs.writeShellApplication {
|
|
name = "agenix-integration";
|
|
text = ''
|
|
grep ${secret} ${config.age.secrets.secret1.path}
|
|
'';
|
|
};
|
|
in {
|
|
imports = [
|
|
./install_ssh_host_keys_darwin.nix
|
|
../modules/age.nix
|
|
];
|
|
|
|
services.nix-daemon.enable = true;
|
|
|
|
age.secrets.secret1.file = ../example/secret1.age;
|
|
|
|
environment.systemPackages = [testScript];
|
|
}
|