-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hello, and thanks for this neat and useful toolchain. I'm trying to do a better job of managing my OpenWRT-based router and APs, and as a confirmed Nixaholic this repository is just what I needed.
Would you be interested in a PR introducing a modular interface to the OpenWRT image builder code? I have a (very) rough cut at such an interface up on SourceHut here.
The high-level view:
{
openwrtImages.default = self.lib.openwrtImage {
modules = [
{
image = {
profileName = "avm_fritz7412";
packages.include = ["tcpdump"];
packages.exclude = ["ppp"];
disabledServices = ["dnsmasq"];
snippets."etc/uci-defaults/99-custom".text = ''
uci -q batch << EOI
set system.@system[0].hostname='testap'
commit
EOI
'';
};
}
];
};
}
If specified as a flake output, the image and associated assets could then be built with nix build '.#openwrtImages.default.config.system.build.image'
. I plan to add a wrapper command for this that would permit doing, say, nix-openwrt-imagebuild '.#default'
.
Any interest in integrating something like this in your project?
Thank you!
felschr, ViZiD and astro
Metadata
Metadata
Assignees
Labels
No labels