Commit ac6eefd6 authored by fpletz's avatar fpletz 🚧
Browse files

luftschleuse: fixes

parent 4addc337
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
{ {
boot = { boot = {
kernelPackages = pkgs.linuxPackages;
loader = { loader = {
grub.enable = false; grub.enable = false;
generic-extlinux-compatible.enable = true; generic-extlinux-compatible.enable = true;
...@@ -32,11 +33,12 @@ ...@@ -32,11 +33,12 @@
firewall.trustedInterfaces = [ "wlan0" "eth0" ]; firewall.trustedInterfaces = [ "wlan0" "eth0" ];
}; };
systemd.network.networks."40-eth0" = { systemd.network.networks."40-wlan0" = {
linkConfig.RequiredForOnline = false; linkConfig.RequiredForOnline = false;
}; };
systemd.network.networks."40-eth0" = {
boot.tmpOnTmpfs = true; linkConfig.RequiredForOnline = true;
};
environment.systemPackages = with pkgs; [ colmena lm_sensors ]; environment.systemPackages = with pkgs; [ colmena lm_sensors ];
...@@ -47,6 +49,10 @@ ...@@ -47,6 +49,10 @@
]; ];
}; };
systemd.services.dnsmasq = {
after = [ "sys-subsystem-net-devices-wlan0.device" ];
bindsTo = [ "sys-subsystem-net-devices-wlan0.device" ];
};
services.dnsmasq = { services.dnsmasq = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
...@@ -54,8 +60,10 @@ ...@@ -54,8 +60,10 @@
interface=wlan0 interface=wlan0
bogus-priv bogus-priv
no-resolv no-resolv
dhcp-range=192.168.2.10,192.168.2.200,1h dhcp-range=192.168.2.10,192.168.2.200,30m
no-ping no-ping
dhcp-option=option:router
dhcp-option=option:dns-server
''; '';
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment