summaryrefslogtreecommitdiff
path: root/features/user/cli/utils/ssh.nix
blob: f10d0b25e62633d6d0af5fa83a3c0ab2031456e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, ... }: let
  cfg = config.features.cli.utils.ssh;
in {
  options.features.cli.utils.ssh.enable = lib.mkEnableOption "ssh";
  config = lib.mkIf cfg.enable {
    programs.ssh = {
      enable = true;
      matchBlocks = {
        "culsans.site" = {
          hostname = "culsans.site";
          user = "server";
          port = 2200;
        };
        "git.culsans.site" = {
          hostname = "culsans.site";
        };
      };
    };
  };
}