🚚 [shared] Added shared config that shared desktop config inherits from
This commit is contained in:
27
shared/base/home-manager/ssh.nix
Normal file
27
shared/base/home-manager/ssh.nix
Normal file
@ -0,0 +1,27 @@
|
||||
# ~/.ssh/config
|
||||
{
|
||||
systemConfig,
|
||||
systems,
|
||||
common,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks =
|
||||
let
|
||||
block = hostname: {
|
||||
port = 22;
|
||||
user = systemConfig.username;
|
||||
hostname = "${hostname}.dns.${common.domain}";
|
||||
};
|
||||
in
|
||||
{
|
||||
desktop = block "desktop";
|
||||
homelab = block "admin"; # TODO rename to homelab
|
||||
pi4 = block "pi4";
|
||||
thinkpad = block "thinkpad";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user