fmt: fmt more things

This commit is contained in:
Aaron Bieber 2022-10-10 06:58:35 -06:00
parent 7b3c6079a6
commit 1ee4900d45
No known key found for this signature in database
3 changed files with 15 additions and 13 deletions

2
deploy
View File

@ -45,7 +45,7 @@ if [ "$1" = "status" ]; then
remote_rev=$(echo $host_data | jq -r .configurationRevision)
remote_ver=$(echo $host_data | jq -r .nixosVersion)
rev_msg="DIRTY"
rev_status="✓";
rev_status="✓"
if [ "$remote_rev" != "DIRTY" ]; then
rev_msg=$(git log --format=%B -n1 $remote_rev | head -n1)
if [ "${remote_rev}" != "${rev}" ]; then

2
fmt
View File

@ -2,4 +2,6 @@
find . -name \*.nix -exec nix fmt {} \+
find . -name \*.sh -exec shfmt -w {} \+
shfmt -w deploy
shfmt -w mkboot
statix check .

24
mkboot
View File

@ -1,16 +1,16 @@
#!/usr/bin/env sh
case $1 in
weather)
nix build .#nixosConfigurations.weatherInstall.config.system.build.sdImage
;;
haas)
nix build .#nixosConfigurations.hassInstall.config.system.build.isoImage
;;
iso)
nix build .#nixosConfigurations.isoInstall.config.system.build.isoImage
;;
*)
echo "Usage: boot [iso|weather|hass]"
weather)
nix build .#nixosConfigurations.weatherInstall.config.system.build.sdImage
;;
haas)
nix build .#nixosConfigurations.hassInstall.config.system.build.isoImage
;;
iso)
nix build .#nixosConfigurations.isoInstall.config.system.build.isoImage
;;
*)
echo "Usage: boot [iso|weather|hass]"
;;
esac