feat(networking): add train WiFi networks
This commit is contained in:
parent
331ded0ec1
commit
576ddc0d69
1 changed files with 23 additions and 0 deletions
|
@ -35,6 +35,24 @@ let
|
||||||
"fd7a:115c:a1e0::a0a1:203c#dns.felschr.com"
|
"fd7a:115c:a1e0::a0a1:203c#dns.felschr.com"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mkPublicWifiProfile = ssid: {
|
||||||
|
connection = {
|
||||||
|
id = ssid;
|
||||||
|
type = "wifi";
|
||||||
|
};
|
||||||
|
wifi = {
|
||||||
|
mode = "infrastructure";
|
||||||
|
inherit ssid;
|
||||||
|
};
|
||||||
|
ipv4 = {
|
||||||
|
method = "auto";
|
||||||
|
};
|
||||||
|
ipv6 = {
|
||||||
|
method = "auto";
|
||||||
|
addr-gen-mode = "stable-privacy";
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
|
@ -46,6 +64,11 @@ in
|
||||||
5353 # mDNS
|
5353 # mDNS
|
||||||
];
|
];
|
||||||
networkmanager.dns = "systemd-resolved";
|
networkmanager.dns = "systemd-resolved";
|
||||||
|
networkmanager.ensureProfiles.profiles = {
|
||||||
|
"WIFIonICE" = mkPublicWifiProfile "WIFIonICE";
|
||||||
|
"WIFI@DB" = mkPublicWifiProfile "WIFI@DB";
|
||||||
|
"metronom free WLAN" = mkPublicWifiProfile "metronom free WLAN";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue