nixos-config/modules/home-manager/ssh.nix

29 lines
679 B
Nix

{pkgs, config, lib, ...}:{
options.speccon18.hm.ssh.enable = lib.mkEnableOption "enables specs personal git preferences";
config = lib.mkIf config.speccon18.hm.ssh.enable {
programs.ssh = {
enable = true;
matchBlocks = {
"git.skdevstudios.com" = {
hostname = "git.skdevstudios.com";
user = "git";
port = 2223;
identityFile = "~/.ssh/id_ed25519";
};
"olympus" = {
hostname = "192.168.1.5";
user = "administrator";
port = 22;
identityFile = "~/.ssh/id_ed25519";
};
"snips" = {
hostname = "snips.sh";
user = "speccon18";
port = 22;
identityFile = "~/.ssh/id_ed25519";
};
};
};
};
}