forked from mirrors_public/oddlama_nix-config
feat(zackbiene): add dnsmasq for isolated wifi, remove some default HA modules
This commit is contained in:
parent
8626fb3f24
commit
2421e2b817
3 changed files with 70 additions and 8 deletions
|
@ -16,12 +16,13 @@
|
||||||
./fs.nix
|
./fs.nix
|
||||||
./net.nix
|
./net.nix
|
||||||
|
|
||||||
./home-assistant.nix
|
./dnsmasq.nix
|
||||||
./mosquitto.nix
|
|
||||||
./zigbee2mqtt.nix
|
|
||||||
./esphome.nix
|
./esphome.nix
|
||||||
./nginx.nix
|
./home-assistant.nix
|
||||||
./hostapd.nix
|
./hostapd.nix
|
||||||
|
./mosquitto.nix
|
||||||
|
./nginx.nix
|
||||||
|
./zigbee2mqtt.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.grub.enable = false;
|
boot.loader.grub.enable = false;
|
||||||
|
|
19
hosts/zackbiene/dnsmasq.nix
Normal file
19
hosts/zackbiene/dnsmasq.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
services.dnsmasq = {
|
||||||
|
enable = true;
|
||||||
|
resolveLocalQueries = false;
|
||||||
|
extraConfig = ''
|
||||||
|
interface=wlan1
|
||||||
|
|
||||||
|
dhcp-authoritative
|
||||||
|
dhcp-range=10.0.90.10,10.0.90.240,24h
|
||||||
|
dhcp-range=fd90::10,fd90::ff0,24h
|
||||||
|
|
||||||
|
enable-ra
|
||||||
|
# Never forward addresses in the non-routed address spaces.
|
||||||
|
bogus-priv
|
||||||
|
|
||||||
|
no-resolv
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -38,11 +38,53 @@ in {
|
||||||
manual = "!include manual.yaml";
|
manual = "!include manual.yaml";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#frontend = {
|
|
||||||
# themes = "!include_dir_merge_named themes";
|
|
||||||
#};
|
|
||||||
default_config = {};
|
|
||||||
met = {};
|
met = {};
|
||||||
|
|
||||||
|
#### only selected components from default_config ####
|
||||||
|
|
||||||
|
automation = {};
|
||||||
|
backup = {};
|
||||||
|
bluetooth = {};
|
||||||
|
config = {};
|
||||||
|
#conversation = {};
|
||||||
|
counter = {};
|
||||||
|
dhcp = {};
|
||||||
|
energy = {};
|
||||||
|
frontend = {
|
||||||
|
#themes = "!include_dir_merge_named themes";
|
||||||
|
};
|
||||||
|
hardware = {};
|
||||||
|
history = {};
|
||||||
|
homeassistant_alerts = {};
|
||||||
|
#cloud = {};
|
||||||
|
image_upload = {};
|
||||||
|
input_boolean = {};
|
||||||
|
input_button = {};
|
||||||
|
input_datetime = {};
|
||||||
|
input_number = {};
|
||||||
|
input_select = {};
|
||||||
|
input_text = {};
|
||||||
|
logbook = {};
|
||||||
|
logger = {};
|
||||||
|
map = {};
|
||||||
|
#media_source = {};
|
||||||
|
mobile_app = {};
|
||||||
|
#my = {};
|
||||||
|
network = {};
|
||||||
|
person = {};
|
||||||
|
schedule = {};
|
||||||
|
scene = {};
|
||||||
|
script = {};
|
||||||
|
ssdp = {};
|
||||||
|
stream = {};
|
||||||
|
sun = {};
|
||||||
|
system_health = {};
|
||||||
|
tag = {};
|
||||||
|
timer = {};
|
||||||
|
#usb = {};
|
||||||
|
webhook = {};
|
||||||
|
zeroconf = {};
|
||||||
|
zone = {};
|
||||||
};
|
};
|
||||||
extraPackages = python3Packages:
|
extraPackages = python3Packages:
|
||||||
with python3Packages; [
|
with python3Packages; [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue