tweak: no longer hard-coding git username

This commit is contained in:
serenity-F 2026-10-01 03:41:54 +10:00
parent 7775745c37
commit 25bed2831a
No known key found for this signature in database

View file

@ -5,7 +5,7 @@
# defines a custom git module
flake.nixosModules.git =
{ pkgs, ... }:
{ pkgs, user-parts, ... }:
{
@ -16,7 +16,7 @@
programs.git.enable = true;
# home manager options
home-manager.users.serenity = {
home-manager.users.${user-parts.user.username} = {
programs = {
@ -37,7 +37,7 @@
email = "serenity-F@noreply.codeberg.org";
# path to signing key
signingKey = "/home/serenity/.ssh/id_ed25519.pub";
signingKey = "/home/${user-parts.user.username}/.ssh/id_ed25519.pub";
};