add ssh darwin
This commit is contained in:
@@ -29,6 +29,7 @@ in {
|
||||
casks = [
|
||||
"gnucash"
|
||||
"utm"
|
||||
"neovide-app"
|
||||
"libreoffice"
|
||||
"firefox"
|
||||
"grandperspective"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# ./ssh
|
||||
./ssh
|
||||
./tailscale
|
||||
./syncthing
|
||||
./yubikey
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user