make * composable; add install medium; archive prevoius code

This commit is contained in:
steveej 2018-10-30 13:38:36 +01:00
parent 5ab3bfc58c
commit 93b1488bd9
74 changed files with 955 additions and 1132 deletions

16
Justfile Executable file
View file

@ -0,0 +1,16 @@
devices action dir +moreargs="":
#!/usr/bin/env bash
set -x
sudo $(nix-build --no-link --show-trace $(dirname {{dir}})/default.nix -A {{action}} --argstr dir {{dir}} {{moreargs}} )
diskMount dir:
just -v devices diskMount {{dir}}
diskUmount dir:
just -v devices diskUmount {{dir}}
diskInstall dir:
just -v devices diskInstall {{dir}}
device-rebuild dir rebuildarg="build":
just -v devices rebuild {{dir}} --argstr rebuildarg {{rebuildarg}}