Refactor: Avoid use folder for one file
All checks were successful
check / check (push) Successful in 32s

Fix #3
This commit is contained in:
Florian RICHER 2025-01-29 21:48:43 +01:00
parent c8d1f9f65a
commit a425abee8b
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
34 changed files with 26 additions and 27 deletions

View file

@ -0,0 +1,32 @@
{ config, lib, ... }:
with lib;
let
cfg = config.modules.home.shell.git;
in
{
options.modules.home.shell.git = {
enable = mkEnableOption ''
Enable git with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
lfs.enable = true;
userName = "Florian RICHER";
userEmail = "florian.richer@protonmail.com";
signing = {
signByDefault = true;
key = "B19E3F4A2D806AB4793FDF2FC73D37CBED7BFC77";
};
extraConfig = {
url."https://invent.kde.org/".insteadOf = "kde:";
url."ssh://git@invent.kde.org/".pushInsteadOf = "kde:";
};
};
};
}