summaryrefslogtreecommitdiff
path: root/machines/bosco/default.nix
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2026-04-11 11:55:30 -0600
committerDevin Finlinson <devin.finlinson@pm.me>2026-04-11 11:55:30 -0600
commit7515aacdf93f68b7ca81f09869200063e41038da (patch)
tree85fcc13fadf799a090c220ead0fed3b296f84cf1 /machines/bosco/default.nix
parent6cf1f6e0e6e687000fb49ffb3ef34b9b8d7d119d (diff)
fixed boot, hopefully networking
Diffstat (limited to 'machines/bosco/default.nix')
-rw-r--r--machines/bosco/default.nix34
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" ];