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