clanModule: Init wifi iwd clan module, with which you can predefine wifi network credentials

This commit is contained in:
Qubasa
2024-08-07 15:50:30 +02:00
parent 9138d72fad
commit 9d8d2bc61e
4 changed files with 90 additions and 19 deletions

View File

@@ -1,32 +1,15 @@
{ self, lib, ... }:
let
wifiModule =
{ ... }:
{
# use iwd instead of wpa_supplicant
networking.wireless.enable = false;
# Use iwd instead of wpa_supplicant. It has a user friendly CLI
networking.wireless.iwd = {
enable = true;
settings = {
Network = {
EnableIPv6 = true;
RoutePriorityOffset = 300;
};
Settings.AutoConnect = true;
};
};
};
flashInstallerModule =
{ config, ... }:
{
imports = [
wifiModule
self.clanModules.iwd
self.nixosModules.installer
];
system.stateVersion = config.system.nixos.version;
nixpkgs.pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux;
}