summaryrefslogtreecommitdiff
path: root/git-settings.nix
diff options
context:
space:
mode:
Diffstat (limited to 'git-settings.nix')
-rw-r--r--git-settings.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/git-settings.nix b/git-settings.nix
new file mode 100644
index 0000000..935143e
--- /dev/null
+++ b/git-settings.nix
@@ -0,0 +1,18 @@
+{lib, ...}:
+with lib; {
+ options.my.git = {
+ enable = mkEnableOption "git configuration sharing";
+
+ name = mkOption {
+ type = types.str;
+ default = "";
+ description = "Git user name for other modules";
+ };
+
+ email = mkOption {
+ type = types.str;
+ default = "";
+ description = "Git user email for other modules";
+ };
+ };
+}