1
Fork 0
satellite/hosts/nixos/lapetus/services/intray.nix

34 lines
779 B
Nix
Raw Normal View History

2024-02-02 02:44:51 +01:00
{ inputs, config, ... }:
let
username = "prescientmoon";
2024-06-13 15:47:36 +02:00
apiPort = config.satellite.ports.intray-api;
webPort = config.satellite.ports.intray-client;
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
# {{{ 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;
};
};
# }}}
# {{{ Networking & storage
2024-06-13 15:47:36 +02:00
satellite.nginx.at."intray".port = webPort;
satellite.nginx.at."api.intray".port = apiPort;
environment.persistence."/persist/state".directories = [
"/www/intray/production/data"
];
# }}}
}