mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
remove jump script
This commit is contained in:
parent
16c5f63962
commit
a7b0a23d43
1 changed files with 1 additions and 10 deletions
|
@ -35,14 +35,6 @@ let
|
|||
User root
|
||||
'';
|
||||
|
||||
jump = pkgs.writeShellScript "jump" ''
|
||||
set -eu
|
||||
echo ${self}
|
||||
ip="$(nix eval --raw ".#nixosConfigurations.\"$1\".config.sconfig.deployment.targetHost")"
|
||||
NIX_SSHOPTS="-F${sshConfig}" nix copy --to ssh://root@$ip ${self}
|
||||
exec ssh -oForwardAgent=yes -F"${sshConfig}" "root@$ip" -t "cd ${self}; nix develop"
|
||||
'';
|
||||
|
||||
livecd-deploy = pkgs.writeShellScript "livecd-deploy" ''
|
||||
set -eux
|
||||
config=".#nixosConfigurations.\"$1\".config"
|
||||
|
@ -75,7 +67,7 @@ let
|
|||
'';
|
||||
|
||||
in
|
||||
{ inherit check-updates check-reboots jump livecd-deploy pkgs sshConfig; };
|
||||
{ inherit check-updates check-reboots livecd-deploy pkgs sshConfig; };
|
||||
|
||||
in
|
||||
{
|
||||
|
@ -85,7 +77,6 @@ in
|
|||
shellHook = ''
|
||||
export SSH_CONFIG_FILE=${sshConfig}
|
||||
alias ssh='ssh -F${sshConfig}'
|
||||
alias jump=${jump}
|
||||
alias check-updates=${check-updates}
|
||||
alias check-reboots=${check-reboots}
|
||||
alias livecd-deploy=${livecd-deploy}
|
||||
|
|
Loading…
Reference in a new issue