fully migrates dnsc-machine
This commit is contained in:
parent
8363764798
commit
7d7f81d9ce
14 changed files with 390 additions and 1 deletions
67
modules/ssh/default.nix
Normal file
67
modules/ssh/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
flake.modules.nixos.ssh =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.self.modules.homeManager.ssh
|
||||
];
|
||||
};
|
||||
|
||||
flake.modules.darwin.ssh =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.self.modules.homeManager.ssh
|
||||
];
|
||||
};
|
||||
|
||||
flake.modules.homeManager.ssh =
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
addKeysToAgent = "yes";
|
||||
};
|
||||
"dnsc-machine" = {
|
||||
hostname = "192.168.178.250";
|
||||
user = "dennis";
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"dnsc-server" = {
|
||||
hostname = "192.168.178.69";
|
||||
user = "dennis";
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"dnsc-vps-sm" = {
|
||||
hostname = "91.99.21.186";
|
||||
user = "dennis";
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"dnsc-storage" = {
|
||||
hostname = "u295965.your-storagebox.de";
|
||||
user = "u295965";
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
port = 23;
|
||||
};
|
||||
"dnsc-storage-sftp" = {
|
||||
hostname = "u295965.your-storagebox.de";
|
||||
user = "u295965";
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||
port = 22;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue