blob: e39500d4c0d30c1a475ecf1b5ad69de465e97013 [file] [log] [blame]
Samuel Shuert659b5642024-02-23 20:47:43 +00001{ config, ... }:
2{
Skyler Greya0da6b22024-02-11 22:53:41 +00003 networking.wireless = {
4 enable = true;
5 userControlled.enable = true;
Samuel Shuert2e42e672024-02-21 21:49:28 +00006
7 networks = {
Skyler Grey32009b72024-05-24 23:59:15 +00008 # Mini's house
9 adelie24 = {
Skyler Grey44fbdc12024-09-17 21:07:18 +000010 pskRaw = "ext:newadelie24";
Samuel Shuert2e42e672024-02-21 21:49:28 +000011 priority = 25;
12 };
Skyler Grey32009b72024-05-24 23:59:15 +000013 adelie50 = {
Skyler Grey44fbdc12024-09-17 21:07:18 +000014 pskRaw = "ext:newadelie50";
Samuel Shuert2e42e672024-02-21 21:49:28 +000015 priority = 50;
16 };
17
18 # Hills Road 6th Form College
Skyler Grey44fbdc12024-09-17 21:07:18 +000019 "HRSFC Wi-Fi".pskRaw = "ext:HRSFC_Wi_Fi";
Samuel Shuert2e42e672024-02-21 21:49:28 +000020
21 # Coded's house
Skyler Grey44fbdc12024-09-17 21:07:18 +000022 Orange2.pskRaw = "ext:Orange2";
Samuel Shuert2e42e672024-02-21 21:49:28 +000023 "Orange2_5G A" = {
Skyler Grey44fbdc12024-09-17 21:07:18 +000024 pskRaw = "ext:Orange2_5G_A";
Samuel Shuert2e42e672024-02-21 21:49:28 +000025 priority = 100;
26 };
PineaFan3ed74f02024-04-20 20:41:36 +010027
Skyler Grey32009b72024-05-24 23:59:15 +000028 # Pinea's house
Skyler Grey44fbdc12024-09-17 21:07:18 +000029 "OurVM2.4".pskRaw = "ext:OurVM2_4";
Skyler Grey32009b72024-05-24 23:59:15 +000030
31 # Moller institute
32 "Moller" = {};
Samuel Shuert2e42e672024-02-21 21:49:28 +000033 };
34
Skyler Grey44fbdc12024-09-17 21:07:18 +000035 secretsFile = config.sops.secrets."modules/nixos/wifi/wifi-passwords.sops.chimera.env.bin".path;
Skyler Greya0da6b22024-02-11 22:53:41 +000036 };
Samuel Shuert2e42e672024-02-21 21:49:28 +000037
Skyler Greya0da6b22024-02-11 22:53:41 +000038 hardware.enableRedistributableFirmware = true;
Samuel Shuert2e42e672024-02-21 21:49:28 +000039
40 sops.secrets."modules/nixos/wifi/wifi-passwords.sops.chimera.env.bin" = {
41 mode = "0400";
42 owner = config.users.users.root.name;
43 group = config.users.users.root.group;
44 sopsFile = ./wifi-passwords.sops.chimera.env.bin;
45 format = "binary";
46 };
Skyler Greya0da6b22024-02-11 22:53:41 +000047}