feat(dgnum): wifi profile
This commit is contained in:
parent
1b88fe280d
commit
d7fdc06406
1 changed files with 45 additions and 1 deletions
|
@ -50,8 +50,52 @@ in
|
||||||
"enp2s0"
|
"enp2s0"
|
||||||
"wg0"
|
"wg0"
|
||||||
];
|
];
|
||||||
|
ensureProfiles = {
|
||||||
|
profiles = {
|
||||||
|
"DGNum" = {
|
||||||
|
connection = {
|
||||||
|
id = "DGNum";
|
||||||
|
type = "wifi";
|
||||||
|
};
|
||||||
|
wifi = {
|
||||||
|
mode = "infrastructure";
|
||||||
|
ssid = "DGNum";
|
||||||
|
};
|
||||||
|
wifi-security = {
|
||||||
|
key-mgmt = "wpa-eap";
|
||||||
|
};
|
||||||
|
"802-1x" = {
|
||||||
|
anonymous-identity = "anonymous";
|
||||||
|
eap = "peap";
|
||||||
|
identity = "lbailly";
|
||||||
|
password = "38C3";
|
||||||
|
phase2-auth = "mschapv2";
|
||||||
|
domain-match = "radius.dgnum.eu";
|
||||||
|
ca-cert = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
|
};
|
||||||
|
ipv4 = {
|
||||||
|
method = "auto";
|
||||||
|
};
|
||||||
|
ipv6 = {
|
||||||
|
addr-gen-mode = "default";
|
||||||
|
method = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
secrets.entries = [
|
||||||
|
{
|
||||||
|
matchId = "DGNum";
|
||||||
|
matchType = "wifi";
|
||||||
|
key = "802-1x.password";
|
||||||
|
file = "/root/dgnum_passwd";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
firewall.allowedUDPPorts = [ 67 53 ];
|
firewall.allowedUDPPorts = [
|
||||||
|
67
|
||||||
|
53
|
||||||
|
];
|
||||||
};
|
};
|
||||||
# systemd.tmpfiles.rules = [
|
# systemd.tmpfiles.rules = [
|
||||||
# "w /sys/devices/system/cpu/cpufreq/policy*/scaling_governor - - - - performance"
|
# "w /sys/devices/system/cpu/cpufreq/policy*/scaling_governor - - - - performance"
|
||||||
|
|
Loading…
Add table
Reference in a new issue