WIP everything

This commit is contained in:
steveej 2024-01-18 14:59:17 +00:00
parent 2a23c7fdbe
commit 26f0bde4b3
29 changed files with 1630 additions and 423 deletions

View file

@ -1,5 +1,5 @@
_DEFAULT_VERSION_TMPL:
echo "{{invocation_directory()}}/nix/variables/versions.tmpl.nix"
# _DEFAULT_VERSION_TMPL:
# echo "{{invocation_directory()}}/nix/variables/versions.tmpl.nix"
_usage:
just -l
@ -53,7 +53,7 @@ update-remote-device devicename +rebuildargs='build':
git commit -v nix/os/devices/{{devicename}}/flake.{nix,lock} -m "nix/os/devices/{{devicename}}: bump versions"
# Re-render the versions of the current device and rebuild its environment
update-this-device rebuild-mode='switch':
update-this-device rebuild-mode='switch' +moreargs='':
#!/usr/bin/env bash
set -e
@ -63,7 +63,7 @@ update-this-device rebuild-mode='switch':
nix flake update
)
just -v rebuild-this-device {{rebuild-mode}}
just -v rebuild-this-device {{rebuild-mode}} {{moreargs}}
git commit -v nix/os/devices/$(hostname -s)/flake.{nix,lock} -m "nix/os/devices/$(hostname -s): bump versions"
@ -261,7 +261,7 @@ test-connection:
#! nix-shell -i zsh
#! nix-shell --pure
while true; do
while true; do
FAILURE="false"
output=$(
echo "$(date)\n---"