This commit is contained in:
Hadi
2024-06-23 17:52:19 +02:00
parent f8786dd24f
commit c5420f8d3a
30 changed files with 50 additions and 74 deletions

View File

@@ -6,4 +6,9 @@ let
ssh jack -S -C "cd /home/hadi/.config/nixos && git pull && sudo -S nixos-rebuild switch --flake ~/.config/nixos#jack"
'';
in { home.packages = with pkgs; [ remote-rebuild ]; }
remote-push = pkgs.writeShellScriptBin "remote-push" ''
cd ~/.config/nixos && git add . && git commit -m "update" && git push
remote-rebuild
'';
in { home.packages = [ remote-rebuild remote-push ]; }