2022-07-14 21:04:08 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./dns.nix
|
2022-07-14 21:39:15 +02:00
|
|
|
];
|
2022-07-14 21:04:08 +02:00
|
|
|
|
2022-07-14 21:39:15 +02:00
|
|
|
# Use the systemd-boot EFI boot loader.
|
2022-07-14 21:04:08 +02:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2022-07-14 21:39:15 +02:00
|
|
|
networking.hostName = "dns"; # Define your hostname.
|
2022-07-14 21:04:08 +02:00
|
|
|
|
|
|
|
networking.useDHCP = false;
|
2022-07-14 21:39:15 +02:00
|
|
|
networking.interfaces = {
|
|
|
|
ens18 = {
|
|
|
|
ipv4.addresses = [{
|
|
|
|
address = "10.42.10.8";
|
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
ipv6.addresses = [{
|
|
|
|
address = "2a01:4f8:1c0c:8221::8";
|
|
|
|
prefixLength = 64;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
2022-07-23 15:57:36 +02:00
|
|
|
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
|
2022-07-14 21:39:15 +02:00
|
|
|
networking.defaultGateway6 = {
|
|
|
|
address = "2a01:4f8:1c0c:8221::1";
|
|
|
|
interface = "ens18";
|
|
|
|
};
|
2022-07-14 21:04:08 +02:00
|
|
|
|
|
|
|
system.stateVersion = "21.11"; # Did you read the comment?
|
|
|
|
|
2022-07-14 21:39:15 +02:00
|
|
|
}
|