new targets
This commit is contained in:
parent
9eb2fd5915
commit
7b3d900430
1 changed files with 11 additions and 1 deletions
12
makefile
12
makefile
|
|
@ -1,5 +1,9 @@
|
||||||
|
HOSTNAME := $(shell hostname -s)
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
|
UNAME_M := $(shell uname -m)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
doas nixos-rebuild switch --flake .#$${HOSTNAME_SHORT}
|
doas nixos-rebuild switch --flake .#${HOSTNAME}
|
||||||
|
|
||||||
weekly: pull clean update ci all push
|
weekly: pull clean update ci all push
|
||||||
|
|
||||||
|
|
@ -28,3 +32,9 @@ pull:
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
git commit -m"updates from makefile" --all
|
git commit -m"updates from makefile" --all
|
||||||
|
|
||||||
|
check:
|
||||||
|
@nix flake check --show-trace $(ARGS)
|
||||||
|
|
||||||
|
test: check
|
||||||
|
doas nixos-rebuild dry-build --flake ./#$(HOSTNAME)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue