Compare commits

...

2 commits

Author SHA1 Message Date
Dmitry Voronin 574d146bff
Home: Add wifi ap config ref. 2024-11-30 14:53:33 +03:00
Dmitry Voronin d810ffea3c
Home: Update AP mac. 2024-11-30 14:53:31 +03:00

View file

@ -24,6 +24,7 @@ in {
# Wan configuration.
# REF: https://nixos.wiki/wiki/Systemd-networkd
# SEE: man 5 systemd.network
# REF: Wifi config: https://openwrt.org/docs/guide-user/network/wifi/wifiextenders/bridgedap#wireless_access_point_-_dumb_access_point
systemd.network = {
enable = true;
wait-online.enable = false; # HACK: So we can use both NM and networkd.
@ -106,7 +107,6 @@ in {
EmitRouter = true;
EmitTimezone = true;
MaxLeaseTimeSec = "24h";
# PersistLeases = false;
PoolOffset = 100;
PoolSize = 150;
ServerAddress = "10.0.0.1/24";
@ -117,7 +117,7 @@ in {
mkStatic = Address: MACAddress: { dhcpServerStaticLeaseConfig = { inherit Address MACAddress; }; };
in [
# TODO: Add pocket.
(mkStatic "10.0.0.2" "9c:9d:7e:8e:3d:c8") # Wifi AP.
(mkStatic "10.0.0.2" "9c:9d:7e:8e:3d:c7") # Wifi AP.
(mkStatic "10.0.0.3" "d8:bb:c1:cc:da:30") # Desktop.
(mkStatic "10.0.0.4" "2c:be:eb:52:53:2b") # Phone.
(mkStatic "10.0.0.5" "14:85:7f:eb:6c:25") # Work.