mv machine specific configs to separate file
This commit is contained in:
+20
-4
@@ -43,11 +43,27 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
# SSH config
|
# SSH config
|
||||||
home.file.sshconfig = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
executable = false;
|
# evaluation warning: user profile: `programs.ssh` default values will be removed in the future.
|
||||||
source = ssh/config;
|
# Consider setting `programs.ssh.enableDefaultConfig` to false,
|
||||||
target = ".ssh/config";
|
# and manually set the default values you want to keep at
|
||||||
|
# `programs.ssh.matchBlocks."*"`.
|
||||||
|
enableDefaultConfig = false;
|
||||||
|
|
||||||
|
matchBlocks."*" = {
|
||||||
|
user = "root";
|
||||||
|
controlMaster = "auto";
|
||||||
|
controlPersist = "3600";
|
||||||
|
controlPath = "/run/user/%i/ssh-socket-%r@%h:%p";
|
||||||
|
serverAliveInterval = 20;
|
||||||
|
};
|
||||||
|
|
||||||
|
matchBlocks."github.com".user = "git";
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
Include config_local
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
User root
|
|
||||||
ServerAliveInterval 20
|
|
||||||
ControlMaster auto
|
|
||||||
ControlPersist 3600
|
|
||||||
ControlPath /run/user/%i/ssh-socket-%r@%h:%p
|
|
||||||
|
|
||||||
Host github.com
|
|
||||||
User git
|
|
||||||
Reference in New Issue
Block a user