diff options
Diffstat (limited to 'machines/bosco/default.nix')
| -rw-r--r-- | machines/bosco/default.nix | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/machines/bosco/default.nix b/machines/bosco/default.nix index 461ebb1..17db03e 100644 --- a/machines/bosco/default.nix +++ b/machines/bosco/default.nix @@ -18,13 +18,16 @@ ]; nixpkgs.hostPlatform = "x86_64-linux"; # Use the GRUB 2 boot loader. - boot.loader.grub.enable = true; - boot.loader.grub.efiSupport = true; + # boot.loader.grub.enable = true; + # boot.loader.grub.efiSupport = true; + boot.loader.systemd-boot.enable = true; # boot.loader.grub.efiInstallAsRemovable = true; boot.loader.efi.efiSysMountPoint = "/boot"; + boot.loader.efi.canTouchEfiVariables = true; # Define on which hard drive you want to install Grub. # boot.loader.grub.device = "nodev"; - boot.loader.grub.device = "/dev/disk/by-uuid/1282-A4B6"; + # boot.loader.grub.device = "/dev/disk/by-uuid/1282-A4B6"; + # boot.loader.grub.device = "/dev/disk/by-partlabel/boot"; boot.loader.timeout = 3; # boot.loader.grub.forceInstall = true; # boot.loader.grub.extraConfig = '' @@ -49,16 +52,35 @@ # networking.localCommands = '' # ip addr add 23.131.76.82/32 dev ens18 + # ip route del default + # ip route add default via "172.16.101.1" dev ens18 src 23.131.76.82 # ''; networking.interfaces."eth0".ipv4 = { addresses = [{ address = "23.131.76.82"; prefixLength = 32; - }]; - routes = [{ - address = "172.16.101.1"; + } + { + address = "172.16.101.82"; prefixLength = 24; }]; + routes = [ + { + via = "172.16.101.1"; + address = "23.131.76.82"; + prefixLength = 32; + options = { + table = "default"; + }; + } + # { + # via = "172.16.101.1"; + # options = { + # table = "default"; + # metric = "202"; + # }; + # } + ]; }; # networking.nameservers = [ "9.9.9.9" ]; |
