summaryrefslogtreecommitdiff
path: root/machines/bosco/default.nix
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2026-04-20 11:35:02 -0600
committerDevin Finlinson <devin.finlinson@pm.me>2026-04-20 11:35:02 -0600
commit85730ea83e857fcae77190f8d4145e579f387967 (patch)
treef6cfbaea0bf1f5217e27e51d1f6dd19c3ab79b56 /machines/bosco/default.nix
parent03dd076b7684c6c7db20d40d097b5d7d6c1fd014 (diff)
finally a working network config
Diffstat (limited to 'machines/bosco/default.nix')
-rw-r--r--machines/bosco/default.nix48
1 files changed, 24 insertions, 24 deletions
diff --git a/machines/bosco/default.nix b/machines/bosco/default.nix
index 27c63be..c62d296 100644
--- a/machines/bosco/default.nix
+++ b/machines/bosco/default.nix
@@ -50,10 +50,10 @@
# networking.usePredictableInterfaceNames = false;
- # networking.localCommands = ''
- # ip addr add 23.131.76.82/32 dev ens18
- # ip route replace default via 172.16.101.1 src 23.131.76.82
- # '';
+ networking.localCommands = ''
+ ip route add default via 172.16.101.1 src 23.131.76.82
+ '';
+ # ip addr add 23.131.76.82/32 dev ens18
# ip route del default
networking.interfaces."eth0".ipv4 = {
addresses = [{
@@ -64,26 +64,26 @@
address = "172.16.101.82";
prefixLength = 24;
}];
- # routes = [
- # {
- # via = "172.16.101.1";
- # address = "0.0.0.0";
- # prefixLength = 0;
- # # address = "172.16.101.82";
- # # prefixLength = 24;
- # options = {
- # table = "default";
- # src = "23.131.76.82";
- # };
- # }
- # # {
- # # via = "172.16.101.1";
- # # options = {
- # # table = "default";
- # # metric = "202";
- # # };
- # # }
- # ];
+ routes = [
+ {
+ via = "172.16.101.1";
+ # address = "0.0.0.0";
+ # prefixLength = 0;
+ address = "172.16.101.0";
+ prefixLength = 24;
+ # options = {
+ # table = "default";
+ # src = "23.131.76.82";
+ # };
+ }
+ # {
+ # via = "172.16.101.1";
+ # options = {
+ # table = "default";
+ # metric = "202";
+ # };
+ # }
+ ];
};
networking.nameservers = [ "9.9.9.9" ];