Roles: Add new school role
This commit is contained in:
parent
3645370498
commit
551c3e2b11
4 changed files with 32 additions and 0 deletions
5
roles/school/services/default.nix
Normal file
5
roles/school/services/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./networkmanager.nix
|
||||
];
|
||||
}
|
||||
19
roles/school/services/networkmanager.nix
Normal file
19
roles/school/services/networkmanager.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{...}: {
|
||||
networking.networkmanager.ensureProfiles = {
|
||||
profiles."school-wifi" = {
|
||||
connection = {
|
||||
id = "Progresa";
|
||||
type = "wifi";
|
||||
};
|
||||
wifi = {
|
||||
mode = "infrastructure";
|
||||
ssid = ".Progresa Invitados";
|
||||
};
|
||||
wifi-security = {
|
||||
auth-alg = "open";
|
||||
key-mgmt = "wpa-psk";
|
||||
psk = "$SCHOOL";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue