Allow s0 to access VLANs

This commit is contained in:
Zuckerberg 2024-06-29 10:11:34 -06:00
parent eac443f280
commit fe41ffc788
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports = [
@ -20,7 +20,7 @@
system.stateVersion = "23.11";
networking.useDHCP = false;
networking.useDHCP = lib.mkDefault true;
networking.firewall.enable = true;
networking.firewall.allowPing = true;

View File

@ -58,8 +58,16 @@
};
swapDevices = [ ];
networking.interfaces.eth0.useDHCP = true;
networking.interfaces.eth1.useDHCP = true;
networking.vlans = {
default = {
id = 1;
interface = "eth1";
};
iot = {
id = 2;
interface = "eth1";
};
};
powerManagement.cpuFreqGovernor = "powersave";
}