2024-02-02 02:44:51 +01:00
|
|
|
{ inputs, config, ... }:
|
2024-02-02 02:42:03 +01:00
|
|
|
let
|
|
|
|
username = "prescientmoon";
|
2024-06-13 15:47:36 +02:00
|
|
|
apiPort = config.satellite.ports.intray-api;
|
|
|
|
webPort = config.satellite.ports.intray-client;
|
2024-02-02 02:42:03 +01:00
|
|
|
in
|
|
|
|
{
|
2024-06-13 15:47:36 +02:00
|
|
|
imports = [ inputs.intray.nixosModules.x86_64-linux.default ];
|
2024-02-02 03:18:10 +01:00
|
|
|
|
2024-02-02 02:42:03 +01:00
|
|
|
# {{{ Configure intray
|
|
|
|
services.intray.production = {
|
|
|
|
enable = true;
|
|
|
|
api-server = {
|
|
|
|
enable = true;
|
|
|
|
port = apiPort;
|
|
|
|
admins = [ username ];
|
|
|
|
};
|
|
|
|
web-server = {
|
|
|
|
enable = true;
|
|
|
|
port = webPort;
|
2024-06-13 15:47:36 +02:00
|
|
|
api-url = config.satellite.nginx.at."api.intray".url;
|
2024-02-02 02:42:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
# }}}
|
|
|
|
# {{{ Networking & storage
|
2024-06-13 15:47:36 +02:00
|
|
|
satellite.nginx.at."intray".port = webPort;
|
|
|
|
satellite.nginx.at."api.intray".port = apiPort;
|
2024-02-02 02:42:03 +01:00
|
|
|
|
|
|
|
environment.persistence."/persist/state".directories = [
|
|
|
|
"/www/intray/production/data"
|
|
|
|
];
|
|
|
|
# }}}
|
|
|
|
}
|