Roles: Add new school role

This commit is contained in:
Toast 2024-09-12 09:48:20 +02:00
parent 3645370498
commit 551c3e2b11
4 changed files with 32 additions and 0 deletions

View file

@ -212,6 +212,7 @@
./roles/desktop
./roles/kde
./roles/gaming
./roles/school
];
Everest = {
stable = true;
@ -223,6 +224,7 @@
};
iMac.modules = [
./roles/desktop
./roles/school
];
};
};

6
roles/school/default.nix Normal file
View file

@ -0,0 +1,6 @@
{...}: {
imports = [
# ./programs
./services
];
}

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
./networkmanager.nix
];
}

View 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";
};
};
};
}