nixos-configuration/hosts/weinturm-pretix-prod/configuration.nix
2023-11-29 19:20:43 +00:00

55 lines
1,016 B
Nix

{ ... }: {
imports = [
./hardware-configuration.nix
../../home-manager/users/jalr.nix
./services
];
networking.hostName = "weinturm-pretix-prod";
networking.useDHCP = false;
systemd.network = {
enable = true;
networks."10-wan" = {
matchConfig.Name = "enp1s0";
networkConfig.DHCP = "no";
address = [
"142.132.185.70/32"
"2a01:4f8:c012:edd::/64"
];
routes = [
{
routeConfig.Destination = "172.31.1.1";
}
{
routeConfig = {
Gateway = "172.31.1.1";
GatewayOnLink = true;
};
}
{
routeConfig.Gateway = "fe80::1";
}
];
};
};
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 60;
priority = 1;
};
security.sudo.wheelNeedsPassword = false;
services.netdata.enable = true;
jalr = {
bootloader = "systemd-boot";
uefi.enable = true;
};
system.stateVersion = "23.11";
}