feat(whitby): add apereo-cas/tvl-sso
Change-Id: I29f5e762852593f05b9936d5635aadcc7eba283e Reviewed-on: https://cl.tvl.fyi/c/depot/+/935 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
90f23b8de1
commit
57ade16b9d
2 changed files with 24 additions and 0 deletions
23
ops/nixos/tvl-sso/default.nix
Normal file
23
ops/nixos/tvl-sso/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
# 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}";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
users.users.apereo-cas = {};
|
||||
users.groups.apereo-cas = {};
|
||||
};
|
||||
}
|
|
@ -18,6 +18,7 @@ in {
|
|||
"${depot.depotPath}/ops/nixos/depot.nix"
|
||||
"${depot.depotPath}/ops/nixos/tvl-slapd/default.nix"
|
||||
"${depot.depotPath}/ops/nixos/www/login.tvl.fyi.nix"
|
||||
"${depot.depotPath}/ops/nixos/tvl-sso/default.nix"
|
||||
];
|
||||
|
||||
hardware = {
|
||||
|
|
Loading…
Reference in a new issue