2019-11-23 23:55:26 +00:00
|
|
|
{
|
2022-10-13 00:03:32 +01:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2019-11-23 23:55:26 +00:00
|
|
|
# Required for the lish console
|
2022-10-10 13:03:08 +01:00
|
|
|
boot.kernelParams = ["console=ttyS0,19200n8"];
|
2019-11-23 23:55:26 +00:00
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
# Timeout to allow lish to connect
|
|
|
|
timeout = 10;
|
|
|
|
|
|
|
|
grub = {
|
|
|
|
device = "nodev";
|
|
|
|
extraConfig = ''
|
|
|
|
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
|
|
terminal_input serial;
|
|
|
|
terminal_output serial;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2023-05-11 22:02:34 +01:00
|
|
|
|
|
|
|
systemd.network.networks."10-eth0" = {
|
|
|
|
matchConfig.Name = "eth0";
|
|
|
|
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "no";
|
|
|
|
|
|
|
|
Address = "178.79.137.55/24";
|
|
|
|
Gateway = "178.79.137.1";
|
|
|
|
|
|
|
|
Domains = "ip.linodeusercontent.com";
|
|
|
|
DNS = [
|
|
|
|
"178.79.182.5"
|
|
|
|
"176.58.107.5"
|
|
|
|
"176.58.116.5"
|
|
|
|
"176.58.121.5"
|
|
|
|
"151.236.220.5"
|
|
|
|
"212.71.252.5"
|
|
|
|
"212.71.253.5"
|
|
|
|
"109.74.192.20"
|
|
|
|
"109.74.193.20"
|
|
|
|
"109.74.194.20"
|
|
|
|
"2a01:7e00::9"
|
|
|
|
"2a01:7e00::3"
|
|
|
|
"2a01:7e00::c"
|
|
|
|
"2a01:7e00::5"
|
|
|
|
"2a01:7e00::6"
|
|
|
|
"2a01:7e00::8"
|
|
|
|
"2a01:7e00::b"
|
|
|
|
"2a01:7e00::4"
|
|
|
|
"2a01:7e00::7"
|
|
|
|
"2a01:7e00::2"
|
|
|
|
];
|
|
|
|
|
|
|
|
IPv6PrivacyExtensions = "no";
|
|
|
|
IPv6AcceptRA = "yes";
|
|
|
|
};
|
|
|
|
};
|
2019-11-23 23:55:26 +00:00
|
|
|
}
|