Add remote rebuild (server)
This commit is contained in:
parent
54eb13bc40
commit
d1f5aa6dfa
@ -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 ]; }
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user