Switch to iwd

This commit is contained in:
Artemis Tosini 2020-12-16 21:43:48 +00:00
parent 71768b10a5
commit 3153480d23
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
4 changed files with 10 additions and 11 deletions

View file

@ -2,7 +2,7 @@
{
imports = [
./networkmanager.nix
./wifi.nix
];
services = {

View file

@ -1,9 +0,0 @@
{ ... }:
{
networking.networkmanager = {
enable = true;
ethernet.macAddress = "random";
wifi.macAddress = "random";
};
users.users.artemis.extraGroups = [ "networkmanager" ];
}

8
sets/wifi.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }:
{
networking.wireless.iwd.enable = true;
environment.etc."iwd/main.conf".text = ''
[General]
AddressRandomization=network
'';
}

View file

@ -7,7 +7,7 @@
../../externals/wip-pinebook-pro/pinebook_pro.nix
../../sets/neovim
../../sets/sway.nix
../../sets/networkmanager.nix
../../sets/wifi.nix
];
networking.hostName = "mistmane";