1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 02:51:08 +01:00
Files
niveum/configs/wifi-at-db.nix

21 lines
544 B
Nix

{ 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;
};
}