ssh config

This commit is contained in:
2026-04-24 01:40:12 -05:00
parent c93e3ed8ae
commit 5466cd4a27
6 changed files with 10 additions and 141 deletions
-1
View File
@@ -5,7 +5,6 @@
...
}: {
imports = [
./ssh
./tailscale
./syncthing
./yubikey
-55
View File
@@ -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
'';
};
};
}