fmt: fmt more things
This commit is contained in:
parent
7b3c6079a6
commit
1ee4900d45
2
deploy
2
deploy
@ -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
2
fmt
@ -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
24
mkboot
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user