Fix deprecated ssh options
This commit is contained in:
@@ -18,27 +18,32 @@ in
|
|||||||
{
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
controlMaster = "auto";
|
enableDefaultConfig = false;
|
||||||
serverAliveInterval = 30;
|
|
||||||
|
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
"bmo.uio.no-on-eduroam" = (
|
"bmo.uio.no-on-eduroam" = (
|
||||||
lib.mkIf (osConfig.system.name == "magicman") (
|
lib.mkIf (osConfig.system.name == "magicman") (
|
||||||
lib.hm.dag.entryBefore [ "bmo.uio.no" ] {
|
lib.hm.dag.entryBefore [ "bmo.uio.no" "*" ] {
|
||||||
match = "host bmo.uio.no exec \"nmcli -g GENERAL.STATE c s eduroam|grep -q -E '\\bactiv'\"";
|
match = "host bmo.uio.no exec \"nmcli -g GENERAL.STATE c s eduroam|grep -q -E '\\bactiv'\"";
|
||||||
hostname = "bmo.uio.no";
|
hostname = "bmo.uio.no";
|
||||||
forwardAgent = false;
|
forwardAgent = false;
|
||||||
|
serverAliveInterval = 30;
|
||||||
|
controlMaster = "auto";
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
"bmo.uio.no" = {
|
"bmo.uio.no" = lib.hm.dag.entryBefore [ "*" ] {
|
||||||
setEnv = {
|
|
||||||
# TERM = "xterm-256color";
|
|
||||||
};
|
|
||||||
hostname = "bmo.uio.no";
|
hostname = "bmo.uio.no";
|
||||||
forwardAgent = false;
|
forwardAgent = false;
|
||||||
proxyJump = "torjus@rlogin.uio.no";
|
proxyJump = "torjus@rlogin.uio.no";
|
||||||
|
serverAliveInterval = 30;
|
||||||
|
controlMaster = "auto";
|
||||||
|
};
|
||||||
|
|
||||||
|
"*" = {
|
||||||
|
serverAliveInterval = 30;
|
||||||
|
controlMaster = "auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user