nix fmt rfc

This commit is contained in:
Christoph Hollizeck 2024-04-04 19:31:55 +02:00
parent 3a8003e671
commit 56df50bdc1
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
41 changed files with 430 additions and 351 deletions

View file

@ -6,10 +6,12 @@
...
}:
with lib;
with lib.wyrdgard; let
with lib.wyrdgard;
let
cfg = config.wyrdgard.tools.git;
user = config.wyrdgard.user;
in {
in
{
options.wyrdgard.tools.git = {
enable = mkBoolOpt true "Enable Git (Default true)";
userName = mkOpt types.str user.fullName "The name to configure git with.";
@ -22,9 +24,15 @@ in {
inherit (cfg) userName userEmail;
lfs = enabled;
extraConfig = {
init = {defaultBranch = "main";};
pull = {rebase = false;};
push = {autoSetupRemote = true;};
init = {
defaultBranch = "main";
};
pull = {
rebase = false;
};
push = {
autoSetupRemote = true;
};
};
};
};