27 lines
452 B
Nix
27 lines
452 B
Nix
{
|
|
lib,
|
|
config,
|
|
osConfig,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIf;
|
|
inherit (osConfig.modules.meta) hostname;
|
|
in
|
|
mkIf config.programs.ssh.enable {
|
|
programs.ssh = {
|
|
addKeysToAgent = "yes";
|
|
matchBlocks = {
|
|
deck = {
|
|
hostname = "steamdeck";
|
|
user = "deck";
|
|
port = 22;
|
|
};
|
|
vm = mkIf (hostname == "marr") {
|
|
hostname = "192.168.122.152";
|
|
user = "ny";
|
|
port = 22;
|
|
};
|
|
};
|
|
};
|
|
}
|