Initial commit

This commit is contained in:
marc committed 2022-10-02 20:33:40 +02:00
commit a1d321316c
30 files changed
+2492

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./git.nix
];
}
+24
View File
@@ -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";
};
};
};
}