mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
40 lines
950 B
Nix
40 lines
950 B
Nix
{ config, tf, meta, kw, pkgs, lib, ... }: with lib; {
|
|
imports = with meta; [
|
|
profiles.hardware.oracle.ubuntu
|
|
profiles.network
|
|
services.nginx
|
|
] ++ optional (builtins.getEnv "CI_PLATFORM" == "TRUSTED" && builtins.pathExists ../trusted/knot) ../trusted/knot;
|
|
|
|
kw.oci = {
|
|
specs = {
|
|
shape = "VM.Standard.E2.1.Micro";
|
|
cores = 1;
|
|
ram = 1;
|
|
space = 50;
|
|
};
|
|
ad = 2;
|
|
network = {
|
|
publicV6 = 7;
|
|
privateV4 = 3;
|
|
};
|
|
};
|
|
|
|
network = {
|
|
yggdrasil = {
|
|
enable = true;
|
|
pubkey = "fc64ee574072ef7420ff98bc53856f881025de252081e661a78e04ebcf7c6b35";
|
|
address = "200:736:2351:7f1a:2117:be00:ce87:58f5";
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts =
|
|
let
|
|
splashy = pkgs.host-splash-site config.networking.hostName;
|
|
in
|
|
kw.virtualHostGen {
|
|
networkFilter = [ "public" ];
|
|
block.locations."/" = { root = splashy; };
|
|
};
|
|
|
|
system.stateVersion = "21.11";
|
|
}
|