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:
Luke Granger-Brown 2020-07-05 19:46:17 +00:00 committed by lukegb
parent 90f23b8de1
commit 57ade16b9d
2 changed files with 24 additions and 0 deletions

View 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 = {};
};
}

View file

@ -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 = {