This commit is contained in:
Steph 2025-01-14 23:01:59 +01:00
parent 9d1409dbd2
commit 730e9c20a8

View File

@ -51,6 +51,8 @@
toupper = "tr [:lower:] [:upper:]"; toupper = "tr [:lower:] [:upper:]";
tolower = "tr [:upper:] [:lower:]"; tolower = "tr [:upper:] [:lower:]";
rebuild = if (os == "linux") then '' rebuild = if (os == "linux") then ''
sudo nix-collect-garbage --delete-older-than 30d &&
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +10 &&
cd $HOME/.local/os && cd $HOME/.local/os &&
git pull && git pull &&
nix flake update --commit-lock-file && nix flake update --commit-lock-file &&
@ -60,6 +62,7 @@
git push && git push &&
cd - cd -
'' else '' '' else ''
nix-collect-garbage --delete-older-than 30d &&
cd $HOME/.local/os && cd $HOME/.local/os &&
git pull && git pull &&
nix flake update --commit-lock-file && nix flake update --commit-lock-file &&