Initial commit
This commit is contained in:
commit
a1d321316c
30 files changed
+2492
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.dev.git;
|
||||
in {
|
||||
|
||||
options.samfelag.modules.dev.git = {
|
||||
enable = lib.mkEnableOption "git config";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
userName = "marc";
|
||||
userEmail = "marc@sastre.cat";
|
||||
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user