summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGrigory Shipunov2022-12-16 20:32:36 +0100
committerGrigory Shipunov2022-12-16 20:33:05 +0100
commit368bceaab3225ede239ad188e6b17b04411712b6 (patch)
treeaf1d3da35e23d795b4db69fc0b9287da26d8e33e /hosts
parent9cc55c5d0fe1f2321892fbebd64abd1d3f1967d7 (diff)
update dishwasher
Diffstat (limited to 'hosts')
-rw-r--r--hosts/dishwasher/configuration.nix26
-rw-r--r--hosts/dishwasher/hardware-configuration.nix2
-rw-r--r--hosts/dishwasher/mcvm-network.nix2
3 files changed, 20 insertions, 10 deletions
diff --git a/hosts/dishwasher/configuration.nix b/hosts/dishwasher/configuration.nix
index 0556748..5b4a138 100644
--- a/hosts/dishwasher/configuration.nix
+++ b/hosts/dishwasher/configuration.nix
@@ -21,6 +21,7 @@
hostName = "dishwasher"; # Define your hostname.
useNetworkd = true;
firewall.enable = true;
+ wireless.iwd.enable = true;
};
time.timeZone = "Europe/Amsterdam";
@@ -35,15 +36,22 @@
Name = "enp1s0";
};
networkConfig = {
- DHCP = "yes";
- LinkLocalAddressing = "ipv6";
- IPv6AcceptRA = "yes";
- };
- dhcpV6Config = {
- WithoutRA = "solicit";
+ # DHCP = "yes";
+ # LinkLocalAddressing = "ipv6";
+ # IPv6AcceptRA = "yes";
+ Address = "10.1.1.50/24";
};
- ipv6AcceptRAConfig = {
- DHCPv6Client = "yes";
+ # dhcpV6Config = {
+ # WithoutRA = "solicit";
+ # };
+ # ipv6AcceptRAConfig = {
+ # DHCPv6Client = "yes";
+ # };
+ };
+ networks."aer" = {
+ matchConfig.name = "wlan0";
+ networkConfig = {
+ DHCP = "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:
diff --git a/hosts/dishwasher/hardware-configuration.nix b/hosts/dishwasher/hardware-configuration.nix
index f9735fb..1a340f3 100644
--- a/hosts/dishwasher/hardware-configuration.nix
+++ b/hosts/dishwasher/hardware-configuration.nix
@@ -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";
}
diff --git a/hosts/dishwasher/mcvm-network.nix b/hosts/dishwasher/mcvm-network.nix
index bd7c1b9..1e59d3f 100644
--- a/hosts/dishwasher/mcvm-network.nix
+++ b/hosts/dishwasher/mcvm-network.nix
@@ -45,7 +45,7 @@
networking.nat = {
enable = true;
enableIPv6 = true;
- externalInterface = "enp1s0";
+ externalInterface = "wlan0";
internalInterfaces = [ "microvm-bridge" ];
};