nix-openwrt-imagebuilder/example.nix

30 lines
567 B
Nix
Raw Normal View History

2022-06-23 03:32:09 +02:00
{ pkgs, ... }:
{
build.profile = "avm_fritz7412";
system.settings = {
2022-06-24 00:27:14 +02:00
hostname = "testap";
description = "nix-openwrt-imagebuilder example";
timezone = "CET-1CEST,M3.5.0,M10.5.0/3";
};
2022-06-23 03:32:09 +02:00
packages.include = [ "tcpdump" "vxlan" "kmod-vxlan" ];
2022-06-23 03:32:09 +02:00
2022-06-24 00:27:14 +02:00
dropbear.settings = { PasswordAuth = false; };
2022-06-23 03:32:09 +02:00
2022-06-24 04:23:55 +02:00
network.interface.loopback = {
device = "lo";
proto = "static";
ipaddr = "127.0.0.1";
netmask = "255.0.0.0";
};
2022-06-24 00:27:14 +02:00
wireless.interfaces.ap0 = {
device = "radio0";
network = "lan";
mode = "ap";
ssid = "Test AP";
};
2022-06-23 03:32:09 +02:00
}