mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
move stuff around
This commit is contained in:
37
modules/cli/ssh.nix
Normal file
37
modules/cli/ssh.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ username, ... }:
|
||||
|
||||
{
|
||||
services.ssh-agent.enable = true;
|
||||
services.ssh-agent.enableFishIntegration = true;
|
||||
|
||||
programs.ssh = {
|
||||
enableDefaultConfig = false;
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"dmowski" = {
|
||||
hostname = "192.168.0.30";
|
||||
user = username;
|
||||
port = 22;
|
||||
identityFile = "~/.ssh/dmowski";
|
||||
};
|
||||
|
||||
"aur.archlinux.org" = {
|
||||
user = username;
|
||||
identityFile = "~/.ssh/aur";
|
||||
};
|
||||
|
||||
"github.com" = {
|
||||
hostname = "github.com";
|
||||
user = "git";
|
||||
identityFile = "~/.ssh/github";
|
||||
};
|
||||
|
||||
"*" = {
|
||||
addKeysToAgent = "yes";
|
||||
setEnv = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user