From 880803e33a5170bb83a72ca6f5fe870d2fa07772 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 23 Aug 2021 09:00:44 -0400 Subject: [PATCH] Update wireless config --- README.org | 14 ++++++++++++-- hosts/acernitro/configuration.nix | 14 ++++++++++++-- hosts/homecloud/configuration.nix | 14 ++++++++++++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index 1faa963..772f063 100644 --- a/README.org +++ b/README.org @@ -417,8 +417,18 @@ NixOS[fn:4] typically stores the current machine configuration in =/etc/nixos/co #+NAME: host-config-wifi #+BEGIN_SRC nix networking.wireless.networks = { - MyWiFi_5C1870.pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; - SM-G975W3034.pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; + MyWiFi_5C1870 = { + priority = 1; + pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; + }; + BELL182 = { + priority = 2; + pskRaw = "8b3c114c695c5013bbcf5fc0af781c7872f95c34e2cceb31afa7bfc1adf66245"; + }; + SM-G975W3034 = { + priority = 3; + pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; + }; }; #+END_SRC diff --git a/hosts/acernitro/configuration.nix b/hosts/acernitro/configuration.nix index 31dc0d8..c5137e0 100644 --- a/hosts/acernitro/configuration.nix +++ b/hosts/acernitro/configuration.nix @@ -13,8 +13,18 @@ networking.interfaces.wlp0s20f3.useDHCP = true; networking.wireless.networks = { - MyWiFi_5C1870.pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; - SM-G975W3034.pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; + MyWiFi_5C1870 = { + priority = 1; + pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; + }; + BELL182 = { + priority = 2; + pskRaw = "8b3c114c695c5013bbcf5fc0af781c7872f95c34e2cceb31afa7bfc1adf66245"; + }; + SM-G975W3034 = { + priority = 3; + pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; + }; }; networking.hosts = { "192.168.3.105" = [ "gamingpc" ]; diff --git a/hosts/homecloud/configuration.nix b/hosts/homecloud/configuration.nix index f98d385..43af48d 100644 --- a/hosts/homecloud/configuration.nix +++ b/hosts/homecloud/configuration.nix @@ -11,8 +11,18 @@ networking.interfaces.wlan0.useDHCP = true; networking.wireless.networks = { - MyWiFi_5C1870.pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; - SM-G975W3034.pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; + MyWiFi_5C1870 = { + priority = 1; + pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; + }; + BELL182 = { + priority = 2; + pskRaw = "8b3c114c695c5013bbcf5fc0af781c7872f95c34e2cceb31afa7bfc1adf66245"; + }; + SM-G975W3034 = { + priority = 3; + pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80"; + }; }; networking.hosts = { "192.168.3.105" = [ "gamingpc" ];