rix101/modules/flake/configurations/agenix-rekey/default.nix

14 lines
504 B
Nix
Raw Normal View History

{ inputs, lib, pkgs, config, options, ... }:
{
config = {
2024-07-27 12:10:26 +02:00
# NOTE: `(r)agenix` and `agenix-rekey` modules are imported by `../../../modules/flake/configurations.nix`
age.rekey = {
# NOTE: defined in `meta.nix`
# hostPubkey = null;
masterIdentities = lib.mkDefault [ "${inputs.self}/secrets/privkey.age" ];
storageMode = lib.mkDefault "local";
localStorageDir = lib.mkDefault "${inputs.self}/secrets/rekeyed/${config.networking.hostName}";
};
};
}