summary refs log tree commit diff stats
path: root/hm/ssh/default.nix
blob: 368830fc755618f83239ff1f13f2f71de7d85f0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{...}: {
  services.ssh-agent.enable = true;

  programs.ssh = {
    enable = true;
    matchBlocks = let
      genBox = user: {
        inherit user;
        hostname = "${user}.your-storagebox.de";
      };
      username = "u384702";
    in {
      "storagebox" = genBox username;
      "storagebox-1" = genBox "${username}-sub1";
    };
  };
}