Don't configure kerberos unless it's necessary
This commit is contained in:
parent
2d01513547
commit
0272bcadd3
|
@ -231,7 +231,7 @@ in {
|
|||
};
|
||||
|
||||
systemd.services."container@paris".after =
|
||||
[ config.fudo.secrets.secret-target ];
|
||||
optional (!isNull cfg.kerberos) config.fudo.secrets.secret-target;
|
||||
|
||||
containers.paris = {
|
||||
autoStart = true;
|
||||
|
@ -276,7 +276,7 @@ in {
|
|||
|
||||
security.pam.krb5.enable = true;
|
||||
|
||||
krb5 = {
|
||||
krb5 = mkIf (!isNull cfg.kerberos) {
|
||||
enable = true;
|
||||
kerberos = pkgs.heimdal;
|
||||
libdefaults = config.krb5.libdefaults;
|
||||
|
@ -296,7 +296,7 @@ in {
|
|||
UseDns = true;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
extraConfig = ''
|
||||
extraConfig = optionalString (!isNull cfg.kerberos) ''
|
||||
GSSAPIAuthentication yes
|
||||
GSSAPICleanupCredentials yes
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue