mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
feat: add wifi@db systemd network
This commit is contained in:
20
configs/wifi-at-db.nix
Normal file
20
configs/wifi-at-db.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ ./wifi-at-db.nix ];
|
||||||
|
|
||||||
networking.wireless = {
|
networking.wireless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userControlled.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
|
"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/
|
"Hotel_Krone" = { }; # login: http://192.168.10.1/
|
||||||
"Ni/Schukajlow".pskRaw = "ffc47f6829da59c48aea878a32252223303f5c47a3859edc90971ffc63346781";
|
"Ni/Schukajlow".pskRaw = "ffc47f6829da59c48aea878a32252223303f5c47a3859edc90971ffc63346781";
|
||||||
"WIFIonICE" = { }; # login: http://10.101.64.10/
|
|
||||||
"WLAN-914742".psk = "67647139648174545446";
|
"WLAN-914742".psk = "67647139648174545446";
|
||||||
"KDG-CEAA4".psk = "PBkBSmejcvM4";
|
"KDG-CEAA4".psk = "PBkBSmejcvM4";
|
||||||
"KDG-4ECF7".psk = "Gdbwh7afw2Bx";
|
"KDG-4ECF7".psk = "Gdbwh7afw2Bx";
|
||||||
|
|||||||
Reference in New Issue
Block a user