oracle-lon01: do more complicated routing, because google
This commit is contained in:
parent
b5fbf1f472
commit
29ac5c60c3
1 changed files with 26 additions and 4 deletions
|
@ -11,12 +11,12 @@
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" = { device = "/dev/mapper/ocivolume-root"; fsType = "xfs"; };
|
"/" = { device = "/dev/mapper/ocivolume-root2"; fsType = "xfs"; };
|
||||||
"/boot" = { device = "/dev/sda2"; fsType = "xfs"; };
|
"/boot" = { device = "/dev/disk/by-partuuid/31604d5f-fb84-4493-984d-08337314b763"; fsType = "xfs"; };
|
||||||
"/boot/efi" = { device = "/dev/sda1"; fsType = "vfat"; };
|
"/boot/efi" = { device = "/dev/disk/by-partuuid/a919ce57-0826-446b-b951-53ae09ec3a85"; fsType = "vfat"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.max-jobs = lib.mkDefault 4;
|
nix.settings.max-jobs = lib.mkDefault 20;
|
||||||
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
hostName = "oracle-lon01";
|
hostName = "oracle-lon01";
|
||||||
domain = "as205479.net";
|
domain = "as205479.net";
|
||||||
hostId = "3a5eb800";
|
hostId = "3a5eb800";
|
||||||
|
useNetworkd = true;
|
||||||
|
|
||||||
nameservers = [
|
nameservers = [
|
||||||
"2001:4860:4860::8888"
|
"2001:4860:4860::8888"
|
||||||
|
@ -34,6 +35,27 @@
|
||||||
"8.8.4.4"
|
"8.8.4.4"
|
||||||
];
|
];
|
||||||
interfaces.enp0s3.useDHCP = true;
|
interfaces.enp0s3.useDHCP = true;
|
||||||
|
interfaces.enp1s0 = {
|
||||||
|
ipv4.addresses = [{ address = "10.0.0.217"; prefixLength = 24; }];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.network = {
|
||||||
|
networks."40-enp0s3".dhcpV4Config = {
|
||||||
|
# Use this link as a fallback; it has an IP Google believes to be in IR.
|
||||||
|
RouteMetric = 2048;
|
||||||
|
};
|
||||||
|
networks."40-enp1s0" = {
|
||||||
|
dhcpV4Config = {
|
||||||
|
RouteMetric = 512;
|
||||||
|
};
|
||||||
|
routes = [{
|
||||||
|
routeConfig = {
|
||||||
|
Gateway = "10.0.0.1";
|
||||||
|
Destination = "0.0.0.0/0";
|
||||||
|
Metric = 512;
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
my.ip.tailscale = "100.93.85.40";
|
my.ip.tailscale = "100.93.85.40";
|
||||||
my.systemType = "aarch64-linux";
|
my.systemType = "aarch64-linux";
|
||||||
|
|
Loading…
Reference in a new issue