git feature
This commit is contained in:
36
modules/features/git/default.nix
Normal file
36
modules/features/git/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user