ssh config
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./ssh
|
||||
./tailscale
|
||||
./syncthing
|
||||
./yubikey
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
service = "ssh";
|
||||
cfg = config.darwin.${service};
|
||||
in {
|
||||
options.darwin.${service} = {
|
||||
enable = lib.mkEnableOption "installs generally wanted apps";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# uhhh
|
||||
# ];
|
||||
|
||||
programs.ssh = {
|
||||
extraConfig = ''
|
||||
|
||||
Host bebe
|
||||
User root
|
||||
HostName 10.10.0.1
|
||||
Host git.blakedheld.xyz
|
||||
Port 7567
|
||||
User gitea
|
||||
Host snowbelle
|
||||
Port 22
|
||||
User blake
|
||||
Host git.snowbelle.lan
|
||||
Port 7567
|
||||
User gitea
|
||||
|
||||
Host *
|
||||
ForwardAgent no
|
||||
ServerAliveInterval 0
|
||||
ServerAliveCountMax 3
|
||||
Compression no
|
||||
AddKeysToAgent no
|
||||
HashKnownHosts no
|
||||
UserKnownHostsFile ~/.ssh/known_hosts
|
||||
ControlMaster no
|
||||
ControlPath ~/.ssh/master-%r@%n:%p
|
||||
ControlPersist no
|
||||
IdentityFile /Users/bhelderman/.ssh/id_macos
|
||||
|
||||
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user