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

54 lines
1.4 KiB
Nix
Raw Normal View History

2024-02-12 17:39:27 +01:00
{ inputs, config, ... }:
2024-06-13 15:47:36 +02:00
let username = "prescientmoon";
2024-02-12 17:39:27 +01:00
in
{
2024-06-13 15:47:36 +02:00
imports = [ inputs.smos.nixosModules.x86_64-linux.default ];
2024-02-12 17:39:27 +01:00
# {{{ Configure smos
services.smos.production = {
enable = true;
# {{{ Docs server
docs-site = {
enable = true;
openFirewall = false;
2024-06-13 15:47:36 +02:00
port = config.satellite.nginx.at."docs.smos".port;
api-url = config.satellite.nginx.at."api.smos".url;
web-url = config.satellite.nginx.at."smos".url;
2024-02-12 17:39:27 +01:00
};
# }}}
# {{{ Api server
api-server = {
enable = true;
openFirewall = false;
2024-06-13 15:47:36 +02:00
port = config.satellite.nginx.at."api.smos".port;
2024-02-12 17:39:27 +01:00
admin = username;
max-backups-per-user = 5;
backup-interval = 3600;
local-backup.enable = true;
};
# }}}
# {{{ Web server
web-server = {
enable = true;
openFirewall = false;
2024-06-13 15:47:36 +02:00
port = config.satellite.nginx.at."smos".port;
docs-url = config.satellite.nginx.at."docs.smos".url;
api-url = config.satellite.nginx.at."api.smos".url;
web-url = config.satellite.nginx.at."smos".url;
2024-02-12 17:39:27 +01:00
};
# }}}
};
# }}}
# {{{ Networking & storage
2024-06-13 15:47:36 +02:00
satellite.nginx.at."docs.smos".port = config.satellite.ports.smos-docs;
satellite.nginx.at."api.smos".port = config.satellite.ports.smos-api;
satellite.nginx.at."smos".port = config.satellite.ports.smos-client;
2024-02-12 17:39:27 +01:00
environment.persistence."/persist/state".directories = [
"/www/smos/production"
];
# }}}
}