1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: add wifi@db systemd network

This commit is contained in:
2021-09-17 09:27:08 +02:00
parent 5939219f8c
commit 08ab96c0db
2 changed files with 22 additions and 1 deletions

20
configs/wifi-at-db.nix Normal file
View File

@@ -0,0 +1,20 @@
{ lib, ... }:
let
ssids = [ "WIFIonICE" "WIFI@DB" ];
in
{
# ref https://gist.github.com/sunsided/7840e89ff4e11b64a2d7503fafa0290c
virtualisation.docker.extraOptions = lib.concatStringsSep " " [
"--bip=172.39.1.5/24"
"--fixed-cidr=172.39.1.0/25"
];
networking.wireless.networks = lib.listToAttrs (map (ssid: {name = ssid; value = {};}) ssids);
# fix dns
systemd.network.networks.wifi-at-db = {
networkConfig.DHCP = "yes";
matchConfig.Name = "wlp3s0";
matchConfig.SSID = lib.concatStringsSep " " ssids;
};
}

View File

@@ -1,5 +1,7 @@
{ pkgs, ... }:
{
imports = [ ./wifi-at-db.nix ];
networking.wireless = {
enable = true;
userControlled.enable = true;
@@ -24,7 +26,6 @@
"wannseeforum" = { }; # login via curl -XPOST http://WannseeLancom.intern.:80/authen/login/ -d userid=$USER_ID -d password=$PASSWORD
"Hotel_Krone" = { }; # login: http://192.168.10.1/
"Ni/Schukajlow".pskRaw = "ffc47f6829da59c48aea878a32252223303f5c47a3859edc90971ffc63346781";
"WIFIonICE" = { }; # login: http://10.101.64.10/
"WLAN-914742".psk = "67647139648174545446";
"KDG-CEAA4".psk = "PBkBSmejcvM4";
"KDG-4ECF7".psk = "Gdbwh7afw2Bx";