add ssh darwin

This commit is contained in:
2026-04-24 01:07:21 -05:00
parent 3f9a9eedc0
commit 9ae3b7e98e
4 changed files with 55 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@
work.enable = true;
apps.enable = true;
gaming.enable = true;
ssh.enable = true;
};
+1
View File
@@ -29,6 +29,7 @@ in {
casks = [
"gnucash"
"utm"
"neovide-app"
"libreoffice"
"firefox"
"grandperspective"
+1 -1
View File
@@ -5,7 +5,7 @@
...
}: {
imports = [
# ./ssh
./ssh
./tailscale
./syncthing
./yubikey
+52
View File
@@ -0,0 +1,52 @@
{
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 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_blake
'';
};
};
}