fix: git identity

This commit is contained in:
m3tm3re
2026-05-05 19:21:20 +02:00
parent 38bc702bbe
commit 51edd1f8b0
5 changed files with 21 additions and 25 deletions
+20 -18
View File
@@ -27,7 +27,7 @@ m3ta-home/
├── users/ ├── users/
│ └── m3tam3re/ │ └── m3tam3re/
│ ├── identities/ │ ├── identities/
│ │ ├── private.nix ← Personal: git (m3tm3re), SSH, JJ │ │ ├── private.nix ← Personal: git (m3tam3re), SSH, JJ
│ │ └── work.nix ← Work: git (sascha.koenig), SSH, JJ │ │ └── work.nix ← Work: git (sascha.koenig), SSH, JJ
│ └── preferences/ ← Identity-independent: cliphist, difftastic │ └── preferences/ ← Identity-independent: cliphist, difftastic
└── assets/ └── assets/
@@ -38,11 +38,11 @@ m3ta-home/
`mkHome` composes a complete Home-Manager configuration from three axes: `mkHome` composes a complete Home-Manager configuration from three axes:
| Dimension | Options | Description | | Dimension | Options | Description |
|-----------|---------|-------------| | --------- | ------------------- | ----------------------------------------------- |
| **WHO** | `user` + `identity` | Which user, which identity (private/work) | | **WHO** | `user` + `identity` | Which user, which identity (private/work) |
| **WHERE** | `context` | `desktop` or `server` — mutually exclusive | | **WHERE** | `context` | `desktop` or `server` — mutually exclusive |
| **WHAT** | `sets` | `coding`, `gaming`, `media` — freely combinable | | **WHAT** | `sets` | `coding`, `gaming`, `media` — freely combinable |
```nix ```nix
mkHome { mkHome {
@@ -108,6 +108,7 @@ home-manager.users.m3tam3re = {
### Host-Specific Overrides ### Host-Specific Overrides
Monitor layouts, window rules, and XDG/MIME settings stay in `nixos-config`: Monitor layouts, window rules, and XDG/MIME settings stay in `nixos-config`:
- `hosts/m3-kratos/home.nix` — dual DP monitors, Hyprland workspaces - `hosts/m3-kratos/home.nix` — dual DP monitors, Hyprland workspaces
- `hosts/m3-ares/home.nix` — laptop eDP + HDMI, tuxedo-backlight - `hosts/m3-ares/home.nix` — laptop eDP + HDMI, tuxedo-backlight
- Server hosts need no `home.nix` (no desktop config) - Server hosts need no `home.nix` (no desktop config)
@@ -118,11 +119,11 @@ The identity system allows switching between personal and work contexts on any m
### How Identities Work ### How Identities Work
| | **Private** | **Work** | | | **Private** | **Work** |
|---|---|---| | ------------- | ---------------------------------------- | ----------------------------- |
| **Git user** | m3tm3re | sascha.koenig | | **Git user** | m3tam3re | sascha.koenig |
| **Git email** | p@m3ta.dev | sascha.koenig@azintec.com | | **Git email** | p@m3ta.dev | sascha.koenig@azintec.com |
| **JJ email** | m@m3tam3re.com | sascha.koenig@azintec.com | | **JJ email** | m@m3tam3re.com | sascha.koenig@azintec.com |
| **SSH hosts** | code.m3ta.dev, github.com, private infra | git.az-gruppe.com, AZ servers | | **SSH hosts** | code.m3ta.dev, github.com, private infra | git.az-gruppe.com, AZ servers |
### Use Case: Work Laptop ### Use Case: Work Laptop
@@ -140,6 +141,7 @@ If you bring a work NixOS machine into your fleet, you can use the same `m3ta-ho
``` ```
This gives you: This gives you:
- Your familiar shell setup (fish, starship, nushell) - Your familiar shell setup (fish, starship, nushell)
- Your CLI tools (fzf, bat, eza, zoxide, etc.) - Your CLI tools (fzf, bat, eza, zoxide, etc.)
- Your editor configs (neovim, zed) - Your editor configs (neovim, zed)
@@ -237,14 +239,14 @@ source = "${config."m3ta-home".paths.srcRoot}/assets/wallpapers";
## Dependencies ## Dependencies
| Input | Purpose | | Input | Purpose |
|-------|---------| | -------------- | --------------------------------------------------------------- |
| `nixpkgs` | Package set (follows nixos-config's nixpkgs) | | `nixpkgs` | Package set (follows nixos-config's nixpkgs) |
| `home-manager` | Home-Manager modules | | `home-manager` | Home-Manager modules |
| `nix-colors` | Dracula theme palette (used everywhere) | | `nix-colors` | Dracula theme palette (used everywhere) |
| `m3ta-nixpkgs` | Custom packages (zellij-ps, rofi-project-opener) and HM modules | | `m3ta-nixpkgs` | Custom packages (zellij-ps, rofi-project-opener) and HM modules |
| `agenix` | Secret management | | `agenix` | Secret management |
| `NUR` | Additional packages | | `NUR` | Additional packages |
## Important Notes ## Important Notes
-4
View File
@@ -100,8 +100,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
appimage-run appimage-run
bemoji bemoji
brave
distrobox
eigent eigent
(element-desktop.override { (element-desktop.override {
commandLineArgs = "--password-store=gnome-libsecret"; commandLineArgs = "--password-store=gnome-libsecret";
@@ -112,12 +110,10 @@
seahorse seahorse
sushi sushi
ksnip ksnip
msty-studio
nwg-look nwg-look
rose-pine-hyprcursor rose-pine-hyprcursor
remmina remmina
slack slack
telegram-desktop
vivaldi vivaldi
vivaldi-ffmpeg-codecs vivaldi-ffmpeg-codecs
vibetyper vibetyper
-1
View File
@@ -14,7 +14,6 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ home.packages = [
pkgs.bruno pkgs.bruno
pkgs.insomnia
]; ];
}; };
} }
-1
View File
@@ -13,7 +13,6 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
plexamp plexamp
unimatrix
webcord webcord
]; ];
+1 -1
View File
@@ -17,7 +17,7 @@
signing.format = null; signing.format = null;
settings = { settings = {
user = { user = {
name = "m3tm3re"; name = "m3tam3re";
email = "p@m3ta.dev"; email = "p@m3ta.dev";
}; };
core.excludesfile = "~/.gitignore_global"; core.excludesfile = "~/.gitignore_global";