This commit is contained in:
parent
ecc1d9e4e9
commit
3352d73b3f
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
self.nixosModules.kernelConfig
|
||||
self.nixosModules.utils
|
||||
self.nixosModules.sysFetch
|
||||
self.nixosModules.git
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user