flake: integrate rescue image building into the "check" target

This commit is contained in:
Colin 2023-11-08 11:39:45 +00:00
parent e30d452254
commit 4951520584
1 changed files with 11 additions and 1 deletions

View File

@ -395,9 +395,12 @@
RC0=$?
nix run '.#check.host-configs'
RC1=$?
nix run '.#check.rescue'
RC2=$?
echo "nur: $RC0"
echo "host-configs: $RC1"
exit $(($RC0 | $RC1))
echo "rescue: $RC2"
exit $(($RC0 | $RC1 | $RC2))
'');
};
@ -442,6 +445,13 @@
''
);
};
check.rescue = {
type = "app";
program = builtins.toString (pkgs.writeShellScript "check-rescue" ''
nix build -v '.#imgs.rescue' --out-link ./result-rescue-img -j2
'');
};
};
templates = {