242 current 1970-01-01 01:00:00 24.05.20240316.c75037b 6.6.22 *
This commit is contained in:
parent
267616cc4e
commit
3b4f67c04f
@ -8,12 +8,27 @@
|
|||||||
"home/psk" = {
|
"home/psk" = {
|
||||||
sopsFile = ../../secrets/wifi.yaml;
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
};
|
};
|
||||||
|
"parents/ssid" = {
|
||||||
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
|
};
|
||||||
|
"parents/psk" = {
|
||||||
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
|
};
|
||||||
"eduroam/ident" = {
|
"eduroam/ident" = {
|
||||||
sopsFile = ../../secrets/wifi.yaml;
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
};
|
};
|
||||||
"eduroam/psk" = {
|
"eduroam/psk" = {
|
||||||
sopsFile = ../../secrets/wifi.yaml;
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
};
|
};
|
||||||
|
"luhbots/ssid" = {
|
||||||
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
|
};
|
||||||
|
"luhbots/ssid5" = {
|
||||||
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
|
};
|
||||||
|
"luhbots/psk" = {
|
||||||
|
sopsFile = ../../secrets/wifi.yaml;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
[connection]
|
[connection]
|
||||||
id=${placeholder."home/ssid"}
|
id=${placeholder."home/ssid"}
|
||||||
type=wifi
|
type=wifi
|
||||||
|
autoconnect-priority=10
|
||||||
|
|
||||||
[wifi]
|
[wifi]
|
||||||
mode=infrastructure
|
mode=infrastructure
|
||||||
@ -19,10 +20,25 @@
|
|||||||
key-mgmt=wpa-psk
|
key-mgmt=wpa-psk
|
||||||
psk=${placeholder."home/psk"}
|
psk=${placeholder."home/psk"}
|
||||||
'';
|
'';
|
||||||
|
"parents.nmconnection".content = ''
|
||||||
|
[connection]
|
||||||
|
id=${placeholder."parents/ssid"}
|
||||||
|
type=wifi
|
||||||
|
autoconnect-priority=10
|
||||||
|
|
||||||
|
[wifi]
|
||||||
|
mode=infrastructure
|
||||||
|
ssid=${placeholder."parents/ssid"}
|
||||||
|
|
||||||
|
[wifi-security]
|
||||||
|
key-mgmt=wpa-psk
|
||||||
|
psk=${placeholder."parents/psk"}
|
||||||
|
'';
|
||||||
"eduroam.nmconnection".content = ''
|
"eduroam.nmconnection".content = ''
|
||||||
[connection]
|
[connection]
|
||||||
id=eduroam
|
id=eduroam
|
||||||
type=wifi
|
type=wifi
|
||||||
|
autoconnect-priority=0
|
||||||
|
|
||||||
[wifi]
|
[wifi]
|
||||||
mode=infrastructure
|
mode=infrastructure
|
||||||
@ -41,47 +57,48 @@
|
|||||||
password=${placeholder."eduroam/psk"}
|
password=${placeholder."eduroam/psk"}
|
||||||
phase2-auth=mschapv2
|
phase2-auth=mschapv2
|
||||||
'';
|
'';
|
||||||
|
"luhbots.nmconnection".content = ''
|
||||||
|
[connection]
|
||||||
|
id=${placeholder."luhbots/ssid"}
|
||||||
|
type=wifi
|
||||||
|
autoconnect-priority=5
|
||||||
|
|
||||||
|
[wifi]
|
||||||
|
mode=infrastructure
|
||||||
|
ssid=${placeholder."luhbots/ssid"}
|
||||||
|
autoconnect-priority=0
|
||||||
|
|
||||||
|
[wifi-security]
|
||||||
|
key-mgmt=wpa-psk
|
||||||
|
psk=${placeholder."luhbots/psk"}
|
||||||
|
'';
|
||||||
|
"luhbots5.nmconnection".content = ''
|
||||||
|
[connection]
|
||||||
|
id=${placeholder."luhbots/ssid5"}
|
||||||
|
type=wifi
|
||||||
|
autoconnect-priority=10
|
||||||
|
|
||||||
|
[wifi]
|
||||||
|
mode=infrastructure
|
||||||
|
ssid=${placeholder."luhbots/ssid5"}
|
||||||
|
autoconnect-priority=0
|
||||||
|
|
||||||
|
[wifi-security]
|
||||||
|
key-mgmt=wpa-psk
|
||||||
|
psk=${placeholder."luhbots/psk"}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
environment.etc = let
|
environment.etc = let
|
||||||
template = config.sops.templates;
|
template = config.sops.templates;
|
||||||
base = "NetworkManager/system-connections";
|
base = "NetworkManager/system-connections";
|
||||||
in {
|
in {
|
||||||
"${base}/home.nmconnection".source = template."home.nmconnection".path;
|
"${base}/home.nmconnection".source = template."home.nmconnection".path;
|
||||||
|
"${base}/parents.nmconnection".source = template."parents.nmconnection".path;
|
||||||
"${base}/eduroam.nmconnection".source = template."eduroam.nmconnection".path;
|
"${base}/eduroam.nmconnection".source = template."eduroam.nmconnection".path;
|
||||||
|
"${base}/luhbots.nmconnection".source = template."luhbots.nmconnection".path;
|
||||||
|
"${base}/luhbots5.nmconnection".source = template."luhbots5.nmconnection".path;
|
||||||
};
|
};
|
||||||
networking.networkmanager = {
|
networking.networkmanager.enable = true;
|
||||||
enable = true;
|
|
||||||
ensureProfiles.profiles = {
|
|
||||||
luhbotsNet5 = {
|
|
||||||
connection = {
|
|
||||||
id = "luhbotsNet5";
|
|
||||||
type = "wifi";
|
|
||||||
autoconnect-priority = "10";
|
|
||||||
};
|
|
||||||
wifi = {
|
|
||||||
mode = "infrastructure";
|
|
||||||
ssid = "luhbotsNet5";
|
|
||||||
};
|
|
||||||
wifi-security = {
|
|
||||||
key-mgmt = "wpa-psk";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
luhbotsNet = {
|
|
||||||
connection = {
|
|
||||||
id = "luhbotsNet";
|
|
||||||
type = "wifi";
|
|
||||||
autoconnect-priority = "5";
|
|
||||||
};
|
|
||||||
wifi = {
|
|
||||||
mode = "infrastructure";
|
|
||||||
ssid = "luhbotsNet";
|
|
||||||
};
|
|
||||||
wifi-security = {
|
|
||||||
key-mgmt = "wpa-psk";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nm-tray
|
nm-tray
|
||||||
|
Loading…
Reference in New Issue
Block a user