fix: roundcube metadata

This commit is contained in:
Inex Code
2025-03-28 17:21:08 +03:00
parent 2b4a9e1f90
commit fa9cd82739
2 changed files with 7 additions and 4 deletions

View File

@@ -27,6 +27,10 @@
homepage = "https://roundcube.net/"; homepage = "https://roundcube.net/";
sourcePage = "https://github.com/roundcube/roundcubemail"; sourcePage = "https://github.com/roundcube/roundcubemail";
supportLevel = "normal"; supportLevel = "normal";
sso = {
accessGroup = "sp.roundcube.users";
adminGroup = "sp.roundcube.admins";
};
}; };
}; };
} }

View File

@@ -47,10 +47,11 @@ in
enableSso = (lib.mkOption { enableSso = (lib.mkOption {
default = false; default = false;
type = lib.types.bool; type = lib.types.bool;
description = "Enable SSO for Roundcube"; description = "Enable Single Sign-On";
}) // { }) // {
meta = { meta = {
type = "enable"; type = "bool";
weight = 1;
}; };
}; };
}; };
@@ -105,8 +106,6 @@ in
$config['oauth_identity_fields'] = ['email']; $config['oauth_identity_fields'] = ['email'];
$config['oauth_login_redirect'] = true; $config['oauth_login_redirect'] = true;
$config['auto_create_user'] = true; $config['auto_create_user'] = true;
$config['oauth_verify_peer'] = false; # FIXME
# $config['oauth_pkce'] = 'S256'; # FIXME
''; '';
systemd.services.roundcube = { systemd.services.roundcube = {
after = [ auth-passthru.oauth2-systemd-service ]; after = [ auth-passthru.oauth2-systemd-service ];