cluster/services/irc: add PAM configuration
This commit is contained in:
parent
92c9f5d680
commit
1ffd88cfe3
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,12 @@ in {
|
||||||
reloadServices = [ "ngircd" ];
|
reloadServices = [ "ngircd" ];
|
||||||
extraDomainNames = [ "irc.${domain}" ];
|
extraDomainNames = [ "irc.${domain}" ];
|
||||||
};
|
};
|
||||||
|
security.pam.services.ngircd = {
|
||||||
|
text = ''
|
||||||
|
# verify IRC users via SSSD
|
||||||
|
auth required ${pkgs.sssd}/lib/security/pam_sss.so
|
||||||
|
'';
|
||||||
|
};
|
||||||
age.secrets = { inherit (vars) ircPeerKey; };
|
age.secrets = { inherit (vars) ircPeerKey; };
|
||||||
systemd.services.ngircd = {
|
systemd.services.ngircd = {
|
||||||
after = [ "acme-finished-${serverName}.target" "dhparams-gen-ngircd.service" ];
|
after = [ "acme-finished-${serverName}.target" "dhparams-gen-ngircd.service" ];
|
||||||
|
|
Loading…
Reference in a new issue