mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 04:13:55 -05:00
common/wifi: use iwd as wifi backend
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
f71c3d1a4e
commit
3e893d5b0c
|
@ -1,4 +1,12 @@
|
||||||
{config, ...}: let
|
{config, ...}: {
|
||||||
|
age.secrets.wifi.file = ../secrets/wifi.age;
|
||||||
|
|
||||||
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
ensureProfiles = {
|
||||||
|
environmentFiles = [config.age.secrets.wifi.path];
|
||||||
|
profiles = let
|
||||||
mkOpenWiFi = ssid: {
|
mkOpenWiFi = ssid: {
|
||||||
connection.id = "${ssid}";
|
connection.id = "${ssid}";
|
||||||
connection.type = "wifi";
|
connection.type = "wifi";
|
||||||
|
@ -29,15 +37,7 @@
|
||||||
wifi-security.key-mgmt = "wpa-eap";
|
wifi-security.key-mgmt = "wpa-eap";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
in {
|
in {
|
||||||
age.secrets.wifi.file = ../secrets/wifi.age;
|
|
||||||
|
|
||||||
networking.networkmanager = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
ensureProfiles = {
|
|
||||||
environmentFiles = [config.age.secrets.wifi.path];
|
|
||||||
profiles = {
|
|
||||||
"Dustin's A54" = mkWPA2WiFi "Dustin's A54" "$DustinsA54PSK";
|
"Dustin's A54" = mkWPA2WiFi "Dustin's A54" "$DustinsA54PSK";
|
||||||
"InmanPerkCustomer" = mkWPA2WiFi "InmanPerkCustomer" "$InmanPerkCustomerPSK";
|
"InmanPerkCustomer" = mkWPA2WiFi "InmanPerkCustomer" "$InmanPerkCustomerPSK";
|
||||||
"Muchacho Guest" = mkOpenWiFi "Muchacho Guest";
|
"Muchacho Guest" = mkOpenWiFi "Muchacho Guest";
|
||||||
|
@ -51,5 +51,10 @@ in {
|
||||||
"wallace" = mkWPA2WiFi "wallace" "$wallacePSK";
|
"wallace" = mkWPA2WiFi "wallace" "$wallacePSK";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wifi = {
|
||||||
|
backend = "iwd";
|
||||||
|
powersave = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue