infrastructure/nixos/ipa.nix
2024-05-13 15:31:34 -07:00

30 lines
704 B
Nix

{
config,
lib,
...
}: let
inherit (lib.modules) mkDefault;
in {
# NOTE: requires manual post-install setup...
# :; kinit admin
# :; ipa-join --hostname=${config.networking.fqdn} -k /tmp/krb5.keytab -s idp.${domain}
# then to authorize it for a specific service...
# :; ipa-getkeytab -k /tmp/krb5.keytab -s idp.${domain} -p ${serviceName}/idp.${domain}@${toUpper domain}
# once the sops secret has been updated with keytab...
# :; systemctl restart sssd
imports = [
./krb5.nix
./sssd.nix
];
config = {
security.ipa = {
enable = mkDefault true;
overrideConfigs = {
krb5 = mkDefault false;
sssd = mkDefault false;
};
};
};
}