Git: Split git home-manager config into user-specific and machine-user specific parts

This commit is contained in:
2026-06-23 14:16:36 +02:00
parent 46e85e815d
commit 7c83ca07de
5 changed files with 28 additions and 17 deletions
@@ -0,0 +1,5 @@
{
flake.modules.homeManager.tux-weckyy702-git = {
programs.git.signing.key = "/home/weckyy702/.ssh/id_ed25519_github_sign";
};
}
@@ -18,6 +18,8 @@
blueman-applet blueman-applet
prusa-slicer prusa-slicer
backlight backlight
tux-weckyy702-git
]; ];
}; };
}; };
-17
View File
@@ -2,21 +2,4 @@
flake.modules.nixos.git = { pkgs, ... }: { flake.modules.nixos.git = { pkgs, ... }: {
environment.systemPackages = [ pkgs.git ]; environment.systemPackages = [ pkgs.git ];
}; };
flake.modules.homeManager.git = {
programs.git = {
enable = true;
settings = {
user = {
email = "konstantin@veltko.de";
name = "Weckyy702";
};
init.defaultBranch = "main";
};
signing = {
format = "ssh";
signByDefault = true;
};
};
};
} }
+19
View File
@@ -0,0 +1,19 @@
{
flake.modules.homeManager.weckyy702-git = {
programs.git = {
enable = true;
settings = {
user = {
email = "konstantin@veltko.de";
name = "Weckyy702";
};
init.defaultBranch = "main";
};
signing = {
# NOTE: The signing key needs to be set per machine, see hosts/<name>/users/weckyy702/git.nix
format = "ssh";
signByDefault = true;
};
};
};
}
+2
View File
@@ -21,6 +21,8 @@
imports = with self.modules.homeManager; [ imports = with self.modules.homeManager; [
nixvim nixvim
btop btop
weckyy702-git
#TODO: moar aspects #TODO: moar aspects
]; ];
}; };