summaryrefslogtreecommitdiff
path: root/lib/ssh.nix
blob: 6446a6375ebecbbe5ed411f11bdfeb39be7d1431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ ... }:

let
  homedir = builtins.getEnv "HOME";
in {
  programs.ssh = {
    controlMaster = "auto";
    enable = true;
    forwardAgent = true;
    matchBlocks = {
      "beryllium" = {
        hostname = "beryllium";
        extraOptions = {
          "RemoteForward" = "/run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra";
          "StreamLocalBindUnlink" = "yes";
        };
      };
    };
  };
}