format everything
This commit is contained in:
parent
9c28397d38
commit
b54f3d54f1
37 changed files with 1185 additions and 1173 deletions
|
|
@ -1,34 +1,34 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.modules.apps.git;
|
||||
let
|
||||
cfg = config.modules.apps.git;
|
||||
in
|
||||
{
|
||||
options.modules.apps.git = {
|
||||
enable = lib.mkEnableOption "enable git";
|
||||
name = lib.mkOption {
|
||||
example = "Jill Doe";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
email = lib.mkOption {
|
||||
example = "jilldoe@test.local";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
options.modules.apps.git = {
|
||||
enable = lib.mkEnableOption "enable git";
|
||||
name = lib.mkOption {
|
||||
example = "Jill Doe";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
email = lib.mkOption {
|
||||
example = "jilldoe@test.local";
|
||||
description = "the git user Name";
|
||||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = cfg.name;
|
||||
userEmail = cfg.email;
|
||||
extraConfig = {
|
||||
init = { defaultBranch = "main"; };
|
||||
safe.directory = "/etc/nixos";
|
||||
pull.rebase = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = cfg.name;
|
||||
userEmail = cfg.email;
|
||||
extraConfig = {
|
||||
init = { defaultBranch = "main"; };
|
||||
safe.directory = "/etc/nixos";
|
||||
pull.rebase = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue