2022-01-15 09:55:15 +00:00
|
|
|
{ config, pkgs, ... }: {
|
2022-01-14 09:19:01 +00:00
|
|
|
imports = [
|
|
|
|
./zfs.nix
|
2022-01-14 10:21:55 +00:00
|
|
|
./users/darkkirb.nix
|
2022-01-14 13:03:14 +00:00
|
|
|
./nix.nix
|
2022-01-14 14:13:55 +00:00
|
|
|
./sops.nix
|
2022-01-14 14:38:01 +00:00
|
|
|
./wireguard.nix
|
2022-01-14 09:19:01 +00:00
|
|
|
];
|
2022-01-14 10:21:55 +00:00
|
|
|
services.openssh.enable = true;
|
|
|
|
environment.systemPackages = [ pkgs.git ];
|
2022-01-14 10:30:44 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
2022-01-15 09:55:15 +00:00
|
|
|
|
|
|
|
# Prometheus node exporter
|
|
|
|
services.prometheus.exporters.node = {
|
|
|
|
enable = true;
|
|
|
|
enabledCollectors = [
|
|
|
|
"buddyinfo"
|
|
|
|
"ethtool"
|
|
|
|
"interrupts"
|
|
|
|
"ksmd"
|
|
|
|
"lnstat"
|
|
|
|
"logind"
|
|
|
|
"mountstats"
|
|
|
|
"network_route"
|
|
|
|
"ntp"
|
|
|
|
"perf"
|
|
|
|
"processes"
|
|
|
|
"qdisc"
|
|
|
|
"systemd"
|
|
|
|
"tcpstat"
|
|
|
|
];
|
|
|
|
listenAddress = (import ../utils/getInternalIP.nix config).listenIP;
|
|
|
|
};
|
|
|
|
boot.kernel.sysctl."kernel.perf_event_paranoid" = 0; # for the perf exporter
|
2022-01-14 09:19:01 +00:00
|
|
|
}
|