project-flake/servers/artemisia/main.nix
2025-09-17 16:39:03 +07:00

34 lines
No EOL
852 B
Nix

{ config, pkgs, secret, ... }:
{
imports = [
./hardware-configuration.nix
./nginx.nix
./forgejo.nix
];
networking.hostName = "artemisia";
system.stateVersion = "25.05";
services.yggdrasil.persistentKeys = true;
marzban = {
env = {
UVICORN_HOST = "artemisia.project-a.space";
UVICORN_PORT = secret.marzban.port;
SUDO_USERNAME = secret.marzban.sudo-username;
SUDO_PASSWORD = secret.marzban.sudo-password;
DOCS = true;
};
cert = true;
domain = "artemisia.project-a.space";
xray = import ../common/xray.nix {
server-domain = "artemisia.project-a.space";
port = secret.marzban.vless-port;
dest = secret.marzban.dest;
privateKey = secret.marzban.privateKey;
shortId = secret.marzban.shortId;
spiderX = secret.marzban.spiderX;
};
};
networking.firewall.allowedTCPPorts = [ secret.marzban.port ];
}