cleanup and restructuring

This commit is contained in:
Rouven Seifert 2023-04-06 22:31:45 +02:00
parent 706220f980
commit 8b2ea66132
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
17 changed files with 85 additions and 97 deletions

View file

@ -1,13 +1,16 @@
{ config, ... }:
let
git = "~/.ssh/git";
in
{
programs.ssh = {
programs.ssh = rec {
enable = true;
matchBlocks = {
"se-gitlab.inf.tu-dresden.de" = {
identityFile = "~/.ssh/git";
identityFile = git;
};
"github.com" = {
identityFile = "~/.ssh/git";
identityFile = git;
};
"rfive.de" = {
user = "debian";
@ -16,10 +19,11 @@
hostname = "kaki.ifsr.de";
user = "root";
};
"fsr" = {
"ifsr" = {
hostname = "ifsr.de";
user = "rouven.seifert";
};
"fsr" = matchBlocks."ifsr";
"quitte" = {
hostname = "quitte.ifsr.de";
user = "root";
@ -30,15 +34,15 @@
};
"git@rfive.de" = {
match = "Host rfive.de User git";
identityFile = "~/.ssh/git";
identityFile = git;
};
"git@raspi" = {
match = "Host raspi User git";
identityFile = "~/.ssh/git";
identityFile = git;
};
"git@ifsr.de" = {
match = "Host ifsr.de User git";
identityFile = "~/.ssh/git";
identityFile = git;
};
};
extraConfig = ''