Add remote rebuild (server)

This commit is contained in:
Hadi 2024-06-23 13:53:01 +02:00
parent 54eb13bc40
commit d1f5aa6dfa
2 changed files with 2 additions and 2 deletions

View File

@ -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 ]; }

View File

@ -29,6 +29,6 @@
sshPublicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPG9SE80ZyBcXZK/f5ypSKudaM5Jo3XtQikCnGo0jI5E hadi@nixy";
theme = import ../themes/jack.nix; # select your theme here
theme = import ../themes/jack.nix;
};
}