This commit is contained in:
Hadi
2024-06-11 22:00:58 +02:00
parent e9310630bd
commit 0e3989391e
2 changed files with 13 additions and 6 deletions

View File

@@ -23,9 +23,14 @@ let
sudo /run/current-system/bin/switch-to-configuration boot
'';
nixy-push = pkgs.writeShellScriptBin "nixy-push" ''
cd ~/.config/nixos && git add . && git commit -m ''${1:-Update} && git push
heaven-push = pkgs.writeShellScriptBin "heaven-push" ''
cd ~/dev/heaven && git add . && git commit -m ''${1:-Update} && git push
'';
remote-rebuild = pkgs.writeShellScriptBin "remote-rebuild" ''
ssh -t heaven "cd ~/.config/heaven && git pull && heaven-rebuild"
'';
in {
home.packages = with pkgs; [
nixy-rebuild
@@ -33,6 +38,8 @@ in {
nixy-update
nixy-gc
nixy-cb
nixy-push
heaven-push
remote-rebuild
];
}