infra/hosts/main-node/default.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

2023-05-06 06:49:46 +02:00
{pkgs, ...}: {
imports = [./hardware-configuration.nix];
boot = {
loader = {
grub.enable = true;
grub.device = "/dev/sda";
};
kernelPackages = pkgs.linuxPackages_latest;
};
2024-05-16 23:31:40 +02:00
zramSwap.enable = true;
2023-05-06 06:49:46 +02:00
networking = {
hostName = "main-node";
nameservers = [
"46.38.225.230"
"46.38.252.230"
"2a03:4000:0:1::e1e6"
"2a03:4000:8000::fce6"
];
2024-09-11 08:54:31 +02:00
defaultGateway = {
address = "89.58.8.1";
interface = "ens3";
};
defaultGateway6 = {
address = "fe80::1";
interface = "ens3";
};
2023-05-06 06:49:46 +02:00
interfaces.ens3 = {
useDHCP = true;
ipv4.addresses = [
{
address = "188.68.44.196";
prefixLength = 32;
}
];
2024-09-11 08:54:31 +02:00
ipv6.addresses = [
{
address = "2a03:4000:5f:d2e::1";
prefixLength = 64;
}
];
2023-05-06 06:49:46 +02:00
};
};
time.timeZone = "Europe/Vienna";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05";
}