nix-openwrt-imagebuilder/example.nix

28 lines
557 B
Nix
Raw Normal View History

2022-06-23 03:32:09 +02:00
{ pkgs, ... }:
{
build.profile = "avm_fritz7412";
system.settings = {
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-23 19:50:55 +02:00
dropbear.settings = {
PasswordAuth = false;
};
2022-06-23 03:32:09 +02:00
files = pkgs.runCommandNoCC "image-files" { } ''
mkdir -p $out/etc/uci-defaults
cat > $out/etc/uci-defaults/99-custom <<EOF
uci -q batch << EOI
set system.@system[0].hostname='testap'
commit
EOI
EOF
'';
}