Makefile : Add fix-unlock.
This commit is contained in:
parent
2850e99dba
commit
00b2b7320e
12
Makefile
12
Makefile
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue