git feature

This commit is contained in:
2026-07-07 11:38:21 +01:00
parent 02b09173b8
commit d61fb98c9f

View File

@@ -0,0 +1,36 @@
{
self,
inputs,
...
}: {
flake.nixosModules.git = {
pkgs,
lib,
...
}: {
programs.git = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.git;
};
};
perSystem = {
pkgs,
lib,
self',
...
}: {
packages.git = inputs.wrappers.wrappers.git.wrap {
inherit pkgs;
runtimePkgs = with pkgs; [
git-secret
];
settings = {
user = {
email = "admin@voidarc.co.uk";
name = "voidarc";
};
credential.helper = "store";
};
};
};
}