dolomite: bandwagon support

This commit is contained in:
xinyangli 2024-04-16 16:48:56 +08:00
parent af11897dda
commit d2013a50d4
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
5 changed files with 99 additions and 4 deletions

View file

@ -1,12 +1,19 @@
{ inputs, config, pkgs, lib, modulesPath, ... }:
let
awsHosts = [ "sgp-00" "tok-00 "];
bwgHosts = [ "la-00" ];
in
{
imports = [
../sops.nix
"${modulesPath}/virtualisation/amazon-image.nix"
./bandwagon.nix
./lightsail.nix
];
config = {
isBandwagon = builtins.elem config.networking.hostName bwgHosts;
isLightsail = builtins.elem config.networking.hostName awsHosts;
sops = {
secrets = {
wg_private_key = {
@ -19,7 +26,6 @@
};
};
};
boot.loader.grub.device = lib.mkForce "/dev/nvme0n1";
boot.kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
@ -39,9 +45,9 @@
custom.prometheus = {
enable = false;
exporters.enable = true;
exporters.enable = false;
grafana = {
enable = true;
enable = false;
password_file = config.sops.secrets.grafana_cloud_api.path;
};
};