nixos/home/modules/ssh.nix

29 lines
546 B
Nix
Raw Normal View History

2024-07-09 05:03:34 +00:00
{ lib, config, ... }:
let
cfg = config.snowhawk.ssh;
in
{
options.snowhawk.ssh = {
enable = lib.mkEnableOption "ssh";
};
config = lib.mkIf cfg.enable {
programs.ssh = {
enable = true;
matchBlocks = {
"git.zynh.me" = {
hostname = "git.zynh.me";
user = "git";
port = 2221;
identityFile = "${config.home.homeDirectory}/.ssh/personal_git";
};
2024-07-09 08:30:45 +00:00
msiserver = {
hostname = "scarlet.zynh.me";
user = "zynh";
};
2024-07-09 05:03:34 +00:00
};
};
};
}