46 lines
1,019 B
Nix
46 lines
1,019 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;
|
|
};
|
|
networking.firewall.interfaces."wg0".allowedTCPPorts = [ config.services.prometheus.exporters.node.port ];
|
|
|
|
nix.buildCores = 0;
|
|
|
|
environment.pathsToLink = [ "/share/zsh" ];
|
|
|
|
console.keyMap = "neo";
|
|
|
|
programs.gnupg.agent.enable = true;
|
|
|
|
security.sudo.extraConfig = ''
|
|
Defaults env_keep += "TMUX"
|
|
'';
|
|
}
|