4b12e04e15
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 8m34s
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
clanCore,
|
|
factsGenerator,
|
|
components,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
surrealdbPort = 8000;
|
|
in
|
|
{
|
|
|
|
networking.firewall.interfaces.wg0.allowedTCPPorts = [ surrealdbPort ];
|
|
healthchecks.closed.public.ports.surrealdb = [ surrealdbPort ];
|
|
|
|
containers.surrealdb = {
|
|
privateNetwork = false;
|
|
autoStart = true;
|
|
|
|
config =
|
|
{ config, lib, ... }:
|
|
{
|
|
nixpkgs.pkgs = pkgs;
|
|
imports = [
|
|
"${components}/monitor/container.nix"
|
|
inputs.nix-topology.nixosModules.default
|
|
inputs.telemetry.nixosModules.telemetry
|
|
];
|
|
system.stateVersion = "24.05";
|
|
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
|
|
|
|
# Photoprism
|
|
# ----------
|
|
services.surrealdb = {
|
|
enable = true;
|
|
host = "0.0.0.0";
|
|
port = surrealdbPort;
|
|
extraFlags = [
|
|
"--auth"
|
|
"--user"
|
|
"root"
|
|
"--pass"
|
|
"root"
|
|
];
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
}
|