add ssh darwin
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
work.enable = true;
|
work.enable = true;
|
||||||
apps.enable = true;
|
apps.enable = true;
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
|
ssh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ in {
|
|||||||
casks = [
|
casks = [
|
||||||
"gnucash"
|
"gnucash"
|
||||||
"utm"
|
"utm"
|
||||||
|
"neovide-app"
|
||||||
"libreoffice"
|
"libreoffice"
|
||||||
"firefox"
|
"firefox"
|
||||||
"grandperspective"
|
"grandperspective"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# ./ssh
|
./ssh
|
||||||
./tailscale
|
./tailscale
|
||||||
./syncthing
|
./syncthing
|
||||||
./yubikey
|
./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