mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
morph: move SSH username setting
This commit is contained in:
parent
c15d650ff0
commit
fef2729880
1 changed files with 2 additions and 1 deletions
|
@ -60,6 +60,8 @@ in
|
||||||
);
|
);
|
||||||
|
|
||||||
sshConfig = pkgs.writeText "ssh_config" ''
|
sshConfig = pkgs.writeText "ssh_config" ''
|
||||||
|
Host *
|
||||||
|
User root
|
||||||
ServerAliveInterval 3
|
ServerAliveInterval 3
|
||||||
StrictHostKeyChecking yes
|
StrictHostKeyChecking yes
|
||||||
GlobalKnownHostsFile ${sshKnownHostsTxt}
|
GlobalKnownHostsFile ${sshKnownHostsTxt}
|
||||||
|
@ -77,7 +79,6 @@ in
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
. ${pkgs.makeWrapper}/nix-support/setup-hook
|
. ${pkgs.makeWrapper}/nix-support/setup-hook
|
||||||
makeWrapper ${pkgs.morph}/bin/morph $out/bin/morph \
|
makeWrapper ${pkgs.morph}/bin/morph $out/bin/morph \
|
||||||
--set SSH_USER root \
|
|
||||||
--set SSH_CONFIG_FILE ${sshConfig}
|
--set SSH_CONFIG_FILE ${sshConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue