move stuff around

This commit is contained in:
2026-02-23 11:11:56 +01:00
parent d74b3a5109
commit f2ef0c0b16
16 changed files with 77 additions and 17 deletions

37
modules/cli/ssh.nix Normal file
View 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";
};
};
};
};
}