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"
|
|
|
|
|
];
|
|
|
|
|
interfaces.ens3 = {
|
|
|
|
|
useDHCP = true;
|
|
|
|
|
ipv4.addresses = [
|
|
|
|
|
{
|
|
|
|
|
address = "188.68.44.196";
|
|
|
|
|
prefixLength = 32;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
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. It‘s 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";
|
|
|
|
|
}
|