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

17 lines
434 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"; # Adjust as needed
};
};
};
};
}