2020-07-05 21:46:17 +02:00
|
|
|
# Configures an Apereo CAS instance for TVL SSO
|
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (config.depot.third_party) apereo-cas;
|
|
|
|
in {
|
|
|
|
config = {
|
|
|
|
environment.systemPackages = [ apereo-cas ];
|
|
|
|
systemd.services.apereo-cas = {
|
|
|
|
description = "Apereo CAS Single Sign On server";
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
after = [ "network.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
User = "apereo-cas";
|
|
|
|
Group = "apereo-cas";
|
2020-07-07 01:05:01 +02:00
|
|
|
ExecStart = "${apereo-cas}/bin/cas";
|
2020-07-07 01:05:22 +02:00
|
|
|
EnvironmentFile = "/etc/cas/secrets";
|
2020-07-05 21:46:17 +02:00
|
|
|
Restart = "always";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
users.users.apereo-cas = {};
|
|
|
|
users.groups.apereo-cas = {};
|
|
|
|
};
|
|
|
|
}
|