Jo
339bd28d1d
feat: added new ssh configuration modules for home-manager feat: add user work with configurations for my work environment feat: added gaming user with configuration for my gaming enviornment eg. lutris and steam Signed-off-by: Jo <johannesreckers2006@gmail.com>
42 lines
703 B
Nix
42 lines
703 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: let
|
|
sshDir = "${config.home.homeDirectory}/.ssh";
|
|
in {
|
|
home.packages = with pkgs; [
|
|
openssh
|
|
];
|
|
|
|
services.ssh-agent.enable = true;
|
|
|
|
programs.ssh = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
AddKeysToAgent yes
|
|
'';
|
|
|
|
matchBlocks = {
|
|
"github.com" = {
|
|
identityFile = "${sshDir}/id_ed25519";
|
|
identitiesOnly = true;
|
|
user = "git";
|
|
};
|
|
|
|
|
|
"gitlab.com" = {
|
|
identityFile = "${sshDir}/id_ed25519";
|
|
identitiesOnly = true;
|
|
user = "git";
|
|
};
|
|
|
|
|
|
"bitbucket.org" = {
|
|
identityFile = "${sshDir}/id_ed25519";
|
|
identitiesOnly = true;
|
|
user = "git";
|
|
};
|
|
};
|
|
};
|
|
}
|