nixos-config/config/default.nix

37 lines
772 B
Nix

{ config, pkgs, ... }: {
imports = [
./zfs.nix
./users/darkkirb.nix
./nix.nix
./sops.nix
./wireguard.nix
./services/loki.nix
./home.nix
./services/restic.nix
];
services.openssh.enable = true;
environment.systemPackages = [ pkgs.git ];
networking.firewall.allowedTCPPorts = [ 22 ];
users.defaultUserShell = pkgs.zsh;
# Prometheus node exporter
services.prometheus.exporters.node = {
enable = true;
enabledCollectors = [
"interrupts"
"lnstat"
"mountstats"
"network_route"
"ntp"
"processes"
"systemd"
"tcpstat"
];
listenAddress = (import ../utils/getInternalIP.nix config).listenIP;
};
nix.buildCores = 0;
environment.pathsToLink = [ "/share/zsh" ];
}