nixos-config/config/default.nix

36 lines
777 B
Nix
Raw Normal View History

2022-01-15 09:55:15 +00:00
{ config, pkgs, ... }: {
2022-01-14 09:19:01 +00:00
imports = [
./zfs.nix
./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
];
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"
2022-01-15 10:06:16 +00:00
# "perf"
2022-01-15 09:55:15 +00:00
"processes"
"qdisc"
"systemd"
"tcpstat"
];
listenAddress = (import ../utils/getInternalIP.nix config).listenIP;
};
2022-01-15 10:06:16 +00:00
# boot.kernel.sysctl."kernel.perf_event_paranoid" = 0; # for the perf exporter
2022-01-14 09:19:01 +00:00
}