Added git
All checks were successful
Check config / build (push) Successful in 9m49s

This commit is contained in:
Alexandre 2026-06-23 17:03:44 +00:00
parent ecc1d9e4e9
commit 3352d73b3f
2 changed files with 25 additions and 13 deletions

View File

@ -1,22 +1,33 @@
{ self, inputs, ... }: {
flake = {
homeModules.git = {
homeModules.git = { pkgs, lib, ... }: {
programs.git = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myGit;
};
};
};
perSystem = { pkgs, lib, ... }: {
packages.myGit = inputs.wrapper-modules.wrappers.git.wrap {
inherit pkgs;
configFile = {
user = {
email = "mateialex@outlook.fr";
name = "Alexandre";
settings = {
user = {
email = "mateialex@outlook.fr";
name = "Alexandre";
};
};
};
};
nixosModules.git = { pkgs, lib, ... }: {
environment.systemPackages = with pkgs; [
git
];
programs.ssh = {
startAgent = true;
extraConfig = ''
Host github.com
IdentityFile ~/.ssh/git
Host git.alexdelcamp.fr
IdentityFile ~/.ssh/git
Port 2222
User git
'';
};
services.gnome.gcr-ssh-agent.enable = false;
};
};
}

View File

@ -22,6 +22,7 @@
self.nixosModules.kernelConfig
self.nixosModules.utils
self.nixosModules.sysFetch
self.nixosModules.git
];
};
}