From d13fa9897f9c0ef3f3dc005cc16b400172ec0f7a Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 17 Nov 2024 12:56:34 +0100 Subject: [PATCH] git config --- flake.nix | 2 +- modules/programs/home.nix | 2 +- modules/system/default.nix | 1 + modules/system/doas/default.nix | 2 -- modules/system/git/default.nix | 11 +++++++++++ 5 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 modules/system/git/default.nix diff --git a/flake.nix b/flake.nix index 167db4a..15d58a4 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ }: let username = "joy"; domain = "joygnu.org"; - mail = "contact@joygnu.org"; + mail = "mail@joygnu.org"; nixpath = "nix/"; nixosconf = {modules}: diff --git a/modules/programs/home.nix b/modules/programs/home.nix index 755bb5a..47de2b5 100644 --- a/modules/programs/home.nix +++ b/modules/programs/home.nix @@ -6,7 +6,7 @@ ./mail ./yazi ./zsh - ./git + # ./git ./helix ./newsboat ./zoxide diff --git a/modules/system/default.nix b/modules/system/default.nix index 44db5b7..d6bbdba 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -4,6 +4,7 @@ ./homemanger ./networking ./doas + ./git ./misc ]; } diff --git a/modules/system/doas/default.nix b/modules/system/doas/default.nix index 8fdc451..ca09073 100644 --- a/modules/system/doas/default.nix +++ b/modules/system/doas/default.nix @@ -8,6 +8,4 @@ persist = true; } ]; - programs.git.enable = true; - programs.git.config = {safe.directory = "*";}; } diff --git a/modules/system/git/default.nix b/modules/system/git/default.nix new file mode 100644 index 0000000..ef88903 --- /dev/null +++ b/modules/system/git/default.nix @@ -0,0 +1,11 @@ +{mail, ...}: { + programs.git = { + enable = true; + config = { + safe.directory = "*"; + user.name = "joy"; + user.email = "${mail}"; + init.defaultBranch = "main"; + }; + }; +}