modules/prometheus: refactor
This commit is contained in:
parent
ebf69d94dd
commit
ec63c8b6cc
26 changed files with 579 additions and 407 deletions
|
@ -31,14 +31,7 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
# networking.useNetworkd = false;
|
||||
|
||||
networking.useNetworkd = true;
|
||||
systemd.network.enable = true;
|
||||
systemd.network.networks."10-wan" = {
|
||||
matchConfig.MACAddress = "00:16:3e:0a:ec:45";
|
||||
|
@ -47,7 +40,6 @@
|
|||
UseDNS = true;
|
||||
};
|
||||
};
|
||||
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
};
|
||||
|
|
|
@ -21,12 +21,20 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 2 * 1024;
|
||||
}
|
||||
];
|
||||
|
||||
custom.prometheus = {
|
||||
enable = lib.mkDefault true;
|
||||
exporters.blackbox.enable = true;
|
||||
custom.prometheus.exporters = {
|
||||
enable = true;
|
||||
node.enable = true;
|
||||
};
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
commonSettings = {
|
||||
auth.enable = true;
|
||||
proxyServer = {
|
||||
|
|
|
@ -52,6 +52,12 @@
|
|||
networkConfig = {
|
||||
DHCP = "no";
|
||||
Gateway = "185.217.108.1";
|
||||
DNSSEC = true;
|
||||
DNSOverTLS = true;
|
||||
DNS = [
|
||||
"8.8.8.8#dns.google"
|
||||
"8.8.4.4#dns.google"
|
||||
];
|
||||
};
|
||||
address = [ "185.217.108.59/24" ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue