rix101/modules/nixos/agenix-rekey-default/default.nix

12 lines
435 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 = {
masterIdentities = lib.mkDefault [ "${inputs.self}/secrets/privkey.age" ];
storageMode = lib.mkDefault "local";
localStorageDir = lib.mkDefault "${inputs.self}/secrets/rekeyed/${config.networking.hostName}";
};
};
}