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

luftschleuse: fixes

parent 4addc337
......@@ -2,6 +2,7 @@
{
boot = {
kernelPackages = pkgs.linuxPackages;
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
......@@ -32,11 +33,12 @@
firewall.trustedInterfaces = [ "wlan0" "eth0" ];
};
systemd.network.networks."40-eth0" = {
systemd.network.networks."40-wlan0" = {
linkConfig.RequiredForOnline = false;
};
boot.tmpOnTmpfs = true;
systemd.network.networks."40-eth0" = {
linkConfig.RequiredForOnline = true;
};
environment.systemPackages = with pkgs; [ colmena lm_sensors ];
......@@ -47,6 +49,10 @@
];
};
systemd.services.dnsmasq = {
after = [ "sys-subsystem-net-devices-wlan0.device" ];
bindsTo = [ "sys-subsystem-net-devices-wlan0.device" ];
};
services.dnsmasq = {
enable = true;
extraConfig = ''
......@@ -54,8 +60,10 @@
interface=wlan0
bogus-priv
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
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