aboutsummaryrefslogtreecommitdiff
path: root/home/mun/programs/ssh.nix
blob: d39de23c6fde9c06be628269b9a55a593005d58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{...}: {
  programs.ssh = {
    enable = true;
    enableDefaultConfig = false;
    matchBlocks = {
      "*" = {
        addKeysToAgent = "yes";
        forwardAgent = false;
      };
      "cgit" = {
        user = "git";
        hostname = "100.76.17.20";
        identityFile = "~/.ssh/cgit";
      };
      "codeberg" = {
        user = "git";
        hostname = "codeberg.org";
        identityFile = "~/.ssh/codeberg";
      };
    };
  };
}