mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
Complete overhaul
This commit is contained in:
commit
d30d11566d
38 changed files with 1373 additions and 0 deletions
21
modules/home/ssh-client.nix
Normal file
21
modules/home/ssh-client.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.ssh-client.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.ssh-client.enable {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
|
||||
matchBlocks.kluebero-vm1 = {
|
||||
hostname = "10.5.251.175";
|
||||
user = "seb";
|
||||
identitiesOnly = true;
|
||||
identityFile = ["~/.ssh/kluebero/id_ed25519"];
|
||||
};
|
||||
};
|
||||
services.ssh-agent.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue