Makefile : Add fix-ulimit.
This commit is contained in:
parent
3c91780c80
commit
725f9a6f6c
17
Makefile
17
Makefile
|
@ -11,10 +11,10 @@ android:
|
||||||
cp ~/.termux/_colors.properties ~/.termux/colors.properties
|
cp ~/.termux/_colors.properties ~/.termux/colors.properties
|
||||||
cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg
|
cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg
|
||||||
|
|
||||||
boot:
|
boot: fix-ulimit
|
||||||
nixos-rebuild boot $(options) --flake $(flake)
|
nixos-rebuild boot $(options) --flake $(flake)
|
||||||
|
|
||||||
boot-no-nixconf:
|
boot-no-nixconf: fix-ulimit
|
||||||
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
|
||||||
|
@ -30,6 +30,13 @@ fix-hm:
|
||||||
systemctl restart home-manager-dasha.service; \
|
systemctl restart home-manager-dasha.service; \
|
||||||
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
|
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
|
||||||
|
|
||||||
|
fix-ulimit:
|
||||||
|
ulimit -n 999999999
|
||||||
|
|
||||||
|
.PHONY: home
|
||||||
|
home:
|
||||||
|
home-manager switch -b old --flake $(flake)#$$USER
|
||||||
|
|
||||||
# SOURCE: https://github.com/DeterminateSystems/nix-installer
|
# SOURCE: https://github.com/DeterminateSystems/nix-installer
|
||||||
install-system:
|
install-system:
|
||||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
||||||
|
@ -44,10 +51,6 @@ install-hm:
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
nix-shell '<home-manager>' -A install
|
nix-shell '<home-manager>' -A install
|
||||||
|
|
||||||
.PHONY: home
|
|
||||||
home:
|
|
||||||
home-manager switch -b old --flake $(flake)#$$USER
|
|
||||||
|
|
||||||
.PHONY: live
|
.PHONY: live
|
||||||
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
|
||||||
|
@ -58,7 +61,7 @@ reboot: boot
|
||||||
show:
|
show:
|
||||||
nix flake show
|
nix flake show
|
||||||
|
|
||||||
switch:
|
switch: fix-ulimit
|
||||||
nixos-rebuild switch $(options) --flake $(flake)
|
nixos-rebuild switch $(options) --flake $(flake)
|
||||||
|
|
||||||
update:
|
update:
|
||||||
|
|
Loading…
Reference in a new issue