Makefile: Add cached & no-nixconf targets.
This commit is contained in:
parent
50fabe73f8
commit
9878e47921
13
Makefile
13
Makefile
|
@ -13,10 +13,8 @@ android:
|
||||||
boot: fix-ulimit fix-unlock
|
boot: fix-ulimit fix-unlock
|
||||||
nixos-rebuild boot $(options) --flake $(flake)
|
nixos-rebuild boot $(options) --flake $(flake)
|
||||||
|
|
||||||
boot-no-nixconf: fix-ulimit fix-unlock
|
cached:
|
||||||
mv /etc/nix/nix.conf /etc/nix/nix.conf_; \
|
$(eval options := $(subst eval-cache false,eval-cache true,$(options)))
|
||||||
nixos-rebuild boot $(options) --flake $(flake); \
|
|
||||||
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
nix flake check --show-trace
|
nix flake check --show-trace
|
||||||
|
@ -30,6 +28,10 @@ fix-ulimit:
|
||||||
fix-unlock:
|
fix-unlock:
|
||||||
pkill nixos-rebuild || true
|
pkill nixos-rebuild || true
|
||||||
|
|
||||||
|
# HACK: Bring back the nix config.
|
||||||
|
fix-nixconf:
|
||||||
|
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
|
||||||
|
|
||||||
gc:
|
gc:
|
||||||
nix-collect-garbage -d
|
nix-collect-garbage -d
|
||||||
# nix-store --gc
|
# nix-store --gc
|
||||||
|
@ -60,6 +62,9 @@ install-hm:
|
||||||
live:
|
live:
|
||||||
nix build -o live $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
|
nix build -o live $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
|
||||||
|
|
||||||
|
no-nixconf:
|
||||||
|
mv /etc/nix/nix.conf /etc/nix/nix.conf_ || true
|
||||||
|
|
||||||
reboot: boot
|
reboot: boot
|
||||||
reboot
|
reboot
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue