74 lines
1.9 KiB
Nix
74 lines
1.9 KiB
Nix
# users/m3tam3re/identities/work.nix — Work identity (sascha.koenig).
|
|
#
|
|
# Sets git identity, jujutsu identity, and SSH match blocks for work infrastructure.
|
|
# This module is loaded when identity = "work" in mkHome.
|
|
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
# ── User identity ──
|
|
home.username = lib.mkForce "sascha.koenig";
|
|
home.homeDirectory = lib.mkForce "/home/sascha.koenig";
|
|
|
|
# ── Git configuration ──
|
|
programs.git = {
|
|
enable = true;
|
|
signing.format = null;
|
|
settings = {
|
|
user = {
|
|
name = lib.mkForce "Sascha König";
|
|
email = lib.mkForce "sascha.koenig@azintec.com";
|
|
};
|
|
core.excludesfile = "~/.gitignore_global";
|
|
init.defaultBranch = "master";
|
|
alias = {
|
|
st = "status";
|
|
logd = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
|
};
|
|
};
|
|
};
|
|
|
|
# ── Jujutsu configuration ──
|
|
programs.jujutsu = {
|
|
enable = true;
|
|
settings = {
|
|
user = {
|
|
email = lib.mkForce "sascha.koenig@azintec.com";
|
|
name = lib.mkForce "Sascha König";
|
|
};
|
|
};
|
|
};
|
|
|
|
# ── SSH configuration (work servers) ──
|
|
programs.ssh = {
|
|
enable = true;
|
|
enableDefaultConfig = false;
|
|
settings = {
|
|
"AZ-CLD-1" = {
|
|
HostName = "152.53.186.119";
|
|
User = "sascha.koenig";
|
|
Port = 2022;
|
|
IdentityFile = "~/.ssh/sascha.koenig";
|
|
};
|
|
"AZ-PRM-1" = {
|
|
HostName = "192.168.152.76";
|
|
User = "sascha.koenig";
|
|
Port = 2022;
|
|
IdentityFile = "~/.ssh/sascha.koenig";
|
|
};
|
|
"git.az-gruppe.com" = {
|
|
HostName = "git.az-gruppe.com";
|
|
Port = 2022;
|
|
User = "sascha.koenig";
|
|
IdentityFile = "~/.ssh/sascha.koenig";
|
|
};
|
|
"code.m3ta.dev" = {
|
|
HostName = "code.m3ta.dev";
|
|
User = "m3tam3re";
|
|
IdentityFile = "~/.ssh/sascha.koenig";
|
|
};
|
|
};
|
|
};
|
|
}
|