This commit is contained in:
Steph 2024-12-10 15:05:15 +01:00
parent 8d8bb26d7f
commit c01d74dde1

View File

@ -46,6 +46,7 @@
tolower = "tr [:upper:] [:lower:]"; tolower = "tr [:upper:] [:lower:]";
rebuild = if (os == "linux") then '' rebuild = if (os == "linux") then ''
cd $HOME/.local/os && cd $HOME/.local/os &&
git pull &&
nix flake update --commit-lock-file && nix flake update --commit-lock-file &&
nixos-rebuild switch --flake "path:$HOME/.local/os#" --use-remote-sudo && nixos-rebuild switch --flake "path:$HOME/.local/os#" --use-remote-sudo &&
git add . && git add . &&
@ -54,6 +55,7 @@
cd - cd -
'' else '' '' else ''
cd $HOME/.local/os && cd $HOME/.local/os &&
git pull &&
nix flake update --commit-lock-file && nix flake update --commit-lock-file &&
home-manager switch && home-manager switch &&
git add . && git add . &&