mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
Add remote rebuild (server)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
let
|
||||
|
||||
remote-rebuild = pkgs.writeShellScriptBin "remote-rebuild" ''
|
||||
ssh jack -C "cd /home/hadi/.config/nixos && git pull && nixy-rebuild"
|
||||
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 ]; }
|
||||
|
||||
Reference in New Issue
Block a user