diff --git a/test/integration.nix b/test/integration.nix index 01d8e3a..2ec2f3e 100644 --- a/test/integration.nix +++ b/test/integration.nix @@ -13,6 +13,7 @@ import "${nixpkgs}/nixos/tests/make-test-python.nix" ({pkgs, ...}: { nodes.system1 = { config, lib, + options, ... }: { imports = [ @@ -26,6 +27,8 @@ import "${nixpkgs}/nixos/tests/make-test-python.nix" ({pkgs, ...}: { file = ../example/passwordfile-user1.age; }; + age.identityPaths = options.age.identityPaths.default ++ ["/etc/ssh/this_key_wont_exist"]; + users = { mutableUsers = false; diff --git a/test/integration_darwin.nix b/test/integration_darwin.nix index 24a8579..4894caa 100644 --- a/test/integration_darwin.nix +++ b/test/integration_darwin.nix @@ -1,6 +1,7 @@ { config, pkgs, + options, ... }: let secret = "hello"; @@ -18,6 +19,8 @@ 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; environment.systemPackages = [testScript];