more makefiles updates

This commit is contained in:
Don Harper 2024-06-30 09:55:24 -05:00
parent 6b53dc5cff
commit 447b936e45

View file

@ -5,7 +5,10 @@ UNAME_M := $(shell uname -m)
all: switch
switch: prep
doas nixos-rebuild switch --flake .#${HOSTNAME} &> nixos-switch.log || ( grep --color error nixos-switch.log && false)
@alejandra . &> nixos-switch.log || ( cat nixos-switch.log && false)
@rm nixos-switch.log
@echo Running nixos-rebuild switch
@doas nixos-rebuild switch --flake .#${HOSTNAME} &> nixos-switch.log || ( grep --color error nixos-switch.log && false)
weekly: pull clean update switch ci push clean
@ -24,10 +27,10 @@ push:
git push
pull:
@. ~/.bash_ssh
# @. ~/.bash_ssh
git pull
doas nix-prefetch-url file://$$PWD/$$(ls -1 src/linuxx64* | tail -n1)
# doas nix-prefetch-url file://$$PWD/$$(ls -1 src/linuxarm64* | tail -n1)
# doas nix-prefetch-url file://$$PWD/$$(ls -1 src/linuxarm64* | tail -n1)
ci:
git commit -m"updates from makefile" --all