Use iwd DHCP

This commit is contained in:
Thomas Avé 2024-10-23 12:34:35 +02:00
parent dd32b217be
commit 1b475ff93e
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, inputs, config, ... }:
{ pkgs, lib, inputs, config, ... }:
let
serverIP = "10.0.0.1";
in {
@ -18,6 +18,8 @@ in {
zramSwap.enable = true;
services.upower.enable = true;
services.logind.extraConfig = ''HandlePowerKey=ignore'';
networking.interfaces.wlan0.useDHCP = lib.mkDefault false;
networking.wireless.iwd.enable = true;
networking.wireless.iwd.settings = {
IPv6 = {
@ -26,6 +28,9 @@ in {
Settings = {
AutoConnect = true;
};
General = {
EnableNetworkConfiguration = true;
};
};