Makefile : Always restore nix.conf for boot-no-nixconf.

This commit is contained in:
Dmitry Voronin 2024-09-03 12:43:04 +03:00
parent 1a63e4cb3e
commit 934c005c7d
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -14,8 +14,8 @@ boot:
nixos-rebuild boot $(options) --flake $(flake)
boot-no-nixconf:
mv /etc/nix/nix.conf /etc/nix/nix.conf_
nixos-rebuild boot $(options) --flake $(flake)
mv /etc/nix/nix.conf /etc/nix/nix.conf_; \
nixos-rebuild boot $(options) --flake $(flake); \
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
check: