dots/modules/home-manager/features/agenix.nix
2025-09-25 21:36:22 +10:00

16 lines
262 B
Nix

{
config,
lib,
userName,
...
}:
let
feature = "agenix";
in
{
config = lib.mkIf config.${feature}.enable {
age.identityPaths = [ "/home/${userName}/.ssh/id_ed25519" ];
};
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
}