forked from mirrors_public/oddlama_nix-config
chore: use agenix, enable initrd networking
This commit is contained in:
parent
855bff0a6f
commit
b68021b3a4
8 changed files with 79 additions and 83 deletions
|
@ -5,15 +5,17 @@
|
|||
};
|
||||
|
||||
systemd.network.networks = {
|
||||
wired = {
|
||||
"10-lan0" = {
|
||||
DHCP = "yes";
|
||||
matchConfig.MACAddress = "00:00:00:00:00:00";
|
||||
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||
dhcpV4Config.RouteMetric = 10;
|
||||
dhcpV6Config.RouteMetric = 10;
|
||||
};
|
||||
wireless = {
|
||||
"10-wlan0" = {
|
||||
DHCP = "yes";
|
||||
matchConfig.MACAddress = "00:00:00:00:00:00";
|
||||
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||
dhcpV4Config.RouteMetric = 40;
|
||||
dhcpV6Config.RouteMetric = 40;
|
||||
};
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
{
|
||||
networking = {
|
||||
hostId = "49ce3b71";
|
||||
wireless.iwd.enable = true;
|
||||
};
|
||||
|
||||
systemd.network.networks = {
|
||||
enp1s0 = {
|
||||
"10-lan0" = {
|
||||
DHCP = "yes";
|
||||
matchConfig.MACAddress = "00:00:00:00:00:00";
|
||||
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||
dhcpV4Config.RouteMetric = 10;
|
||||
dhcpV6Config.RouteMetric = 10;
|
||||
};
|
||||
enp2s0 = {
|
||||
"10-lan1" = {
|
||||
DHCP = "yes";
|
||||
matchConfig.MACAddress = "00:00:00:00:00:00";
|
||||
dhcpV4Config.RouteMetric = 10;
|
||||
dhcpV6Config.RouteMetric = 10;
|
||||
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||
dhcpV4Config.RouteMetric = 20;
|
||||
dhcpV6Config.RouteMetric = 20;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue