broke out ssh module
This commit is contained in:
32
homeManagerModules/ssh.nix
Normal file
32
homeManagerModules/ssh.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
programs.ssh = lib.mkIf config.ssh {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
SetEnv TERM="xterm-256color"
|
||||
${lib.optionalString config._1password "IdentityAgent ~/.1password/agent.sock"}
|
||||
'';
|
||||
matchBlocks = lib.mkMerge [
|
||||
(lib.mkIf (config.profile == "personal") {
|
||||
"panoptes" = {
|
||||
hostname = "192.168.1.107";
|
||||
user = "panoptes";
|
||||
};
|
||||
"pve5070" = {
|
||||
hostname = "192.168.1.130";
|
||||
user = "root";
|
||||
};
|
||||
"nix-test" = {
|
||||
hostname = "192.168.1.36";
|
||||
user = "john";
|
||||
};
|
||||
})
|
||||
(lib.mkIf (config.profile == "work") {
|
||||
"ubuntu-nvidia" = {
|
||||
hostname = "10.118.46.120";
|
||||
user = "john";
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user