c4fb0432ae
GitOrigin-RevId: 3fc1143a04da49a92c3663813c6a0c1e8ccd477f
24 lines
648 B
Nix
24 lines
648 B
Nix
# 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";
|
|
ExecStart = "${apereo-cas}/bin/cas";
|
|
EnvironmentFile = "/etc/cas/secrets";
|
|
Restart = "always";
|
|
};
|
|
};
|
|
users.users.apereo-cas = {};
|
|
users.groups.apereo-cas = {};
|
|
};
|
|
}
|