2021-02-24 00:16:30 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
2021-02-21 21:39:01 +01:00
|
|
|
|
2023-02-03 22:28:50 +01:00
|
|
|
{
|
2021-02-21 21:39:01 +01:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../configuration/proxmox-vm
|
2023-02-03 22:28:50 +01:00
|
|
|
./alertmanager.nix
|
2023-11-05 13:36:58 +01:00
|
|
|
./blackbox.nix
|
2023-02-03 22:28:50 +01:00
|
|
|
./grafana.nix
|
2023-02-04 00:57:55 +01:00
|
|
|
./nixos-validator.nix
|
2023-02-03 22:28:50 +01:00
|
|
|
./prometheus.nix
|
|
|
|
./uptimestatus.nix
|
2021-02-21 21:39:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.ens18.ipv4.addresses = [ { address = "192.168.10.32"; prefixLength = 24; } ];
|
|
|
|
networking.interfaces.ens19.ipv6.addresses = [ { address = "2001:638:904:ffca::7"; prefixLength = 64; } ];
|
|
|
|
networking.defaultGateway = { address = "192.168.10.1"; interface = "ens18"; };
|
|
|
|
networking.defaultGateway6 = { address = "2001:638:904:ffca::1"; interface = "ens19"; };
|
|
|
|
networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ];
|
|
|
|
|
|
|
|
services.prometheus.exporters.node.enable = true;
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
|
|
|
|
system.stateVersion = "21.03";
|
|
|
|
}
|