update dishwasher

This commit is contained in:
Grigory Shipunov 2022-12-16 20:32:36 +01:00
parent 9cc55c5d0f
commit 368bceaab3
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
6 changed files with 49 additions and 38 deletions

View file

@ -21,6 +21,7 @@
hostName = "dishwasher"; # Define your hostname.
useNetworkd = true;
firewall.enable = true;
wireless.iwd.enable = true;
};
time.timeZone = "Europe/Amsterdam";
@ -34,16 +35,23 @@
matchConfig = {
Name = "enp1s0";
};
networkConfig = {
# DHCP = "yes";
# LinkLocalAddressing = "ipv6";
# IPv6AcceptRA = "yes";
Address = "10.1.1.50/24";
};
# dhcpV6Config = {
# WithoutRA = "solicit";
# };
# ipv6AcceptRAConfig = {
# DHCPv6Client = "yes";
# };
};
networks."aer" = {
matchConfig.name = "wlan0";
networkConfig = {
DHCP = "yes";
LinkLocalAddressing = "ipv6";
IPv6AcceptRA = "yes";
};
dhcpV6Config = {
WithoutRA = "solicit";
};
ipv6AcceptRAConfig = {
DHCPv6Client = "yes";
};
};
};
@ -59,7 +67,7 @@
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [ "en_US.UTF-8" "nl_NL.UTF-8" "ru_RU.UTF-8" ];
supportedLocales = [ "all" ];
};
# List services that you want to enable:

View file

@ -59,5 +59,7 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
networking.interfaces.wlan0.useDHCP = true;
networking.interfaces.enp1s0.useDHCP = true;
services.logind.lidSwitch = "ignore";
}

View file

@ -45,7 +45,7 @@
networking.nat = {
enable = true;
enableIPv6 = true;
externalInterface = "enp1s0";
externalInterface = "wlan0";
internalInterfaces = [ "microvm-bridge" ];
};