better™️

This commit is contained in:
jacekpoz 2024-03-01 00:39:36 +01:00
parent 1495804ef5
commit 90717bd4a3
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 22 additions and 20 deletions

View file

@ -268,51 +268,52 @@
enable = true;
hostAliases = let
username = config.myOptions.other.system.username;
hmCfg = config.home-manager.users.${username};
in {
"github" = {
hostName = "github.com";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/githubkey";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/githubkey";
};
"git.dupa.edu.pl" = {
hostName = "git.dupa.edu.pl";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/gitdupaedupl";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/gitdupaedupl";
};
"codeberg" = {
hostName = "codeberg.org";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/codeberg";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/codeberg";
};
"gitlab" = {
hostName = "gitlab.com";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/gitlab";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/gitlab";
};
"aur" = {
hostName = "aur.archlinux.org";
user = "aur";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/aur";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/aur";
};
"jacekpoz" = {
hostName = "git.jacekpoz.pl";
user = "forgejo";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/jacekpoz";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/jacekpoz";
};
"chmura" = {
hostName = "192.168.15.2";
user = "chmura";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/chmura";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/chmura";
};
"chmura2" = {
hostName = "jacekpoz.pl";
user = "chmura";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/chmura";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/chmura";
};
"malina" = {
hostName = "192.168.15.3";
user = "malina";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/malina";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/malina";
};
"outfoxxed" = {
hostName = "git.outfoxxed.me";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/outfoxxed";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/outfoxxed";
};
};
};

View file

@ -240,51 +240,52 @@
enable = true;
hostAliases = let
username = config.myOptions.other.system.username;
hmCfg = config.home-manager.users.${username};
in {
"github" = {
hostName = "github.com";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/githubkey";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/githubkey";
};
"git.dupa.edu.pl" = {
hostName = "git.dupa.edu.pl";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/gitdupaedupl";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/gitdupaedupl";
};
"codeberg" = {
hostName = "codeberg.org";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/codeberg";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/codeberg";
};
"gitlab" = {
hostName = "gitlab.com";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/gitlab";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/gitlab";
};
"aur" = {
hostName = "aur.archlinux.org";
user = "aur";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/aur";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/aur";
};
"jacekpoz" = {
hostName = "git.jacekpoz.pl";
user = "forgejo";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/jacekpoz";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/jacekpoz";
};
"chmura" = {
hostName = "192.168.15.2";
user = "chmura";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/chmura";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/chmura";
};
"chmura2" = {
hostName = "jacekpoz.pl";
user = "chmura";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/chmura";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/chmura";
};
"malina" = {
hostName = "192.168.15.3";
user = "malina";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/malina";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/malina";
};
"outfoxxed" = {
hostName = "git.outfoxxed.me";
identityFile = "${config.home-manager.users.${username}.home.homeDirectory}/.ssh/outfoxxed";
identityFile = "${hmCfg.home.homeDirectory}/.ssh/outfoxxed";
};
};
};