Alexandre 3352d73b3f
All checks were successful
Check config / build (push) Successful in 9m49s
Added git
2026-06-23 17:03:44 +00:00

34 lines
735 B
Nix

{ self, inputs, ... }: {
flake = {
homeModules.git = { pkgs, lib, ... }: {
programs.git = {
enable = true;
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;
};
};
}