Makefile : Add fix-unlock.

This commit is contained in:
Dmitry Voronin 2024-10-13 22:46:12 +03:00
parent 2850e99dba
commit 00b2b7320e
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -12,10 +12,10 @@ android:
cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg
cp ~/.Wallpaper /sdcard/Download/Wallpaper.png cp ~/.Wallpaper /sdcard/Download/Wallpaper.png
boot: fix-ulimit boot: fix-ulimit fix-unlock
nixos-rebuild boot $(options) --flake $(flake) nixos-rebuild boot $(options) --flake $(flake)
boot-no-nixconf: fix-ulimit boot-no-nixconf: fix-ulimit fix-unlock
mv /etc/nix/nix.conf /etc/nix/nix.conf_; \ mv /etc/nix/nix.conf /etc/nix/nix.conf_; \
nixos-rebuild boot $(options) --flake $(flake); \ nixos-rebuild boot $(options) --flake $(flake); \
mv /etc/nix/nix.conf_ /etc/nix/nix.conf mv /etc/nix/nix.conf_ /etc/nix/nix.conf
@ -23,9 +23,15 @@ boot-no-nixconf: fix-ulimit
check: check:
nix flake check --show-trace nix flake check --show-trace
# HACK: Fix ulimit switch issue. Test sometime in the future again.
fix-ulimit: fix-ulimit:
ulimit -n 999999999 ulimit -n 999999999
# HACK: They broke switching in systemd service ffs.
# https://github.com/NixOS/nixpkgs/issues/347315
fix-unlock:
pkill nixos-rebuild
format: format:
treefmt --no-cache --on-unmatched=info treefmt --no-cache --on-unmatched=info
@ -65,7 +71,7 @@ reboot: boot
show: show:
nix flake show nix flake show
switch: fix-ulimit switch: fix-ulimit fix-unlock
nixos-rebuild switch $(options) --flake $(flake) nixos-rebuild switch $(options) --flake $(flake)
update: update: