remove networkmanager and add ssh client config
This commit is contained in:
parent
63f76712f5
commit
00aa4f1984
@ -1,7 +1,7 @@
|
|||||||
{ inputs, config, pkgs, ... }:
|
{ inputs, config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
# networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
||||||
systemd.services."NetworkManager-wait-online" = {
|
systemd.services."NetworkManager-wait-online" = {
|
||||||
|
@ -2,8 +2,35 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
programs.ssh.extraConfig = ''
|
programs.ssh.extraConfig = ''
|
||||||
|
Host prod1
|
||||||
|
HostName prod1
|
||||||
|
ForwardAgent yes
|
||||||
|
Port 22222
|
||||||
|
User xbazzi
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
IdentityFile ~/.ssh/lan_id_ed25519
|
||||||
|
|
||||||
|
Host nas-mgmt
|
||||||
|
HostName nas-mgmt
|
||||||
|
ForwardAgent yes
|
||||||
|
User xbazzi
|
||||||
|
IdentityFile ~/.ssh/lan_id_ed25519
|
||||||
|
|
||||||
|
Host nas
|
||||||
|
HostName nas
|
||||||
|
User xbazzi
|
||||||
|
IdentityFile ~/.ssh/lan_id_ed25519
|
||||||
|
|
||||||
Host school
|
Host school
|
||||||
HostName school
|
HostName school
|
||||||
IdentityFile ~/.ssh/lan_ed25519
|
ForwardAgent yes
|
||||||
|
User xbazzi
|
||||||
|
IdentityFile ~/.ssh/lan_id_ed25519
|
||||||
|
|
||||||
|
Host ext1-mgmt
|
||||||
|
HostName ext1-mgmt
|
||||||
|
ForwardAgent yes
|
||||||
|
User xbazzi
|
||||||
|
IdentityFile ~/.ssh/lan_id_ed25519
|
||||||
'';
|
'';
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user