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

  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";
    };
  };
}