16 lines
262 B
Nix
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}";
|
|
}
|