Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Jul 5, 2024
1 parent 325110d commit 9a3e5bd
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 10 deletions.
20 changes: 20 additions & 0 deletions hosts/hastur/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
MACAddressPolicy = "persistent";
};
};
links."20-ncm" = {
matchConfig.Driver = "cdc_ncm";
linkConfig = {
NamePolicy = "keep";
Name = "ncm";
MACAddressPolicy = "persistent";
};
};
links."40-wlan0" = {
matchConfig.MACAddress = "70:66:55:e7:1c:b1";
linkConfig.Name = "wlan0";
Expand Down Expand Up @@ -188,6 +196,18 @@
# };
};

"25-ncm" = {
matchConfig.Name = "ncm";
DHCP = "yes";
dhcpV4Config.RouteMetric = 2044;
dhcpV6Config.RouteMetric = 2044;
dhcpV4Config.UseDNS = false;
dhcpV6Config.UseDNS = false;
networkConfig = {
DNSSEC = true;
};
};

"30-rndis" = {
matchConfig.Name = "rndis";
DHCP = "yes";
Expand Down
3 changes: 1 addition & 2 deletions hosts/kaambl/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
disk = {
nvme = {
type = "disk";
# device = "/dev/disk/by-id/nvme-HP_SSD_FX900_Plus_M.2_2TB_HBSE53120600733";
device = "/dev/disk/by-id/usb-HIKSEMI_MD202_012938008F0E-0:0";
device = "/dev/disk/by-id/nvme-HP_SSD_FX900_Plus_M.2_2TB_HBSE53120600733";
content = {
type = "gpt";
partitions = {
Expand Down
35 changes: 27 additions & 8 deletions hosts/kaambl/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@
MACAddressPolicy = "persistent";
};
};
links."20-ncm" = {
matchConfig.Driver = "cdc_ncm";
linkConfig = {
NamePolicy = "keep";
Name = "ncm";
MACAddressPolicy = "persistent";
};
};
links."40-wlan" = {
matchConfig.Driver = "ath11k_pci";
linkConfig.Name = "wlan0";
Expand All @@ -101,16 +109,16 @@
};
wireguardPeers = [
{
PublicKey = "+fuA9nUmFVKy2Ijfh5xfcnO9tpA/SkIL4ttiWKsxyXI=";
AllowedIPs = [ "10.0.1.0/24" ];
Endpoint = "127.0.0.1:41820";
PersistentKeepalive = 15;
PublicKey = "+fuA9nUmFVKy2Ijfh5xfcnO9tpA/SkIL4ttiWKsxyXI=";
AllowedIPs = [ "10.0.1.0/24" ];
Endpoint = "127.0.0.1:41820";
PersistentKeepalive = 15;
}
{
PublicKey = "49xNnrpNKHAvYCDikO3XhiK94sUaSQ4leoCnTOQjWno=";
AllowedIPs = [ "10.0.2.0/24" ];
Endpoint = "116.196.112.43:51820";
PersistentKeepalive = 15;
PublicKey = "49xNnrpNKHAvYCDikO3XhiK94sUaSQ4leoCnTOQjWno=";
AllowedIPs = [ "10.0.2.0/24" ];
Endpoint = "116.196.112.43:51820";
PersistentKeepalive = 15;
}
# {
# wireguardPeerConfig = {
Expand Down Expand Up @@ -169,6 +177,17 @@
DNSSEC = true;
};
};
"25-ncm" = {
matchConfig.Name = "ncm";
DHCP = "yes";
dhcpV4Config.RouteMetric = 2044;
dhcpV6Config.RouteMetric = 2044;
dhcpV4Config.UseDNS = false;
dhcpV6Config.UseDNS = false;
networkConfig = {
DNSSEC = true;
};
};
};
};
}

0 comments on commit 9a3e5bd

Please sign in to comment.