1
0

Compare commits

..

2 Commits

Author SHA1 Message Date
2fd7a4c5aa hosts/monitoring-3: add monitoring of mercury 2023-02-24 23:47:46 +01:00
0a2bb76f40 hosts/hydra-1: use nix-serve-ng 2023-02-24 23:11:21 +01:00
2 changed files with 11 additions and 2 deletions

View File

@ -54,7 +54,7 @@
bindAddress = "127.0.0.1"; bindAddress = "127.0.0.1";
secretKeyFile = "/var/src/secrets/nix-serve/secret-key.key"; secretKeyFile = "/var/src/secrets/nix-serve/secret-key.key";
# Workaround https://github.com/NixOS/nix/issues/7704#issuecomment-1409480909 # Workaround https://github.com/NixOS/nix/issues/7704#issuecomment-1409480909
package = pkgs.nix-serve.override { package = pkgs.nix-serve-ng.override {
nix = pkgs.nixVersions.nix_2_12; nix = pkgs.nixVersions.nix_2_12;
}; };
}; };
@ -80,7 +80,7 @@
''; '';
}; };
locations."/" = { locations."/" = {
proxyPass = "http://localhost:5005"; proxyPass = "http://127.0.0.1:5005";
}; };
}; };
}; };

View File

@ -13,6 +13,15 @@ let
nixos = false; nixos = false;
}; };
}; };
"mercury".config = {
networking.hostName = "mercury";
clerie.monitoring = {
enable = true;
id = "401";
pubkey = "jrwc4gMZh/Ss1MEXWkLhXcAp4Z++Xnl4noYIZnCfWQg=";
nixos = false;
};
};
}; };
monitoringHosts = filterAttrs (name: host: monitoringHosts = filterAttrs (name: host: