Configuratioration#
Wed, 14 Feb 2018 22:17:47 +0000
I apologize most humbly for missing my self-imposed Tuesday update deadline. This is because yesterday my phone stopped acknowledging the presence of either wifi or any form of mobile reception, making it somewhat useless as a communications device, and so I spent my allotted blogging time instead on fiddling with adb and fastboot and reflashing random new ROMs, making it not even boot - just as useless as a communications device, but additionally useless as a music player, games platform or even a flashlight. FTW!
Now running[*] on backup phone ...
This week I have mostly been rearranging things so that the configuration is separate from the mechanism, and am reasonably content with the result, at least as a starting point:
- you write an attrset for the "host" platform ("host" used here in the sense that GNU Autoconf uses it and written with scare quotes because any normal person would call it the target platform)
- you write a function that accepts an attrset of
{pkgs, stdenv, ...}
and returns a configuration - an attrset with keys likeinterfaces
,services
,users
etc
- you call nixwrt with both of those as arguments, and then ask for
the
tftproot
attribute of the value returned
(In the picture: the development board for Milestone 0 and the victim^Wtarget device for Milestone 1, both sitting on top of the build host)
[*] "walking" or "crawling" might be better descriptors, Galaxy Nexus is a bit long in the tooth these days