summaryrefslogtreecommitdiff
path: root/users/seth/programs/git.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-06-30 09:56:30 -0400
committerseth <[email protected]>2024-06-30 10:23:04 -0400
commit088facf700946cb8f2d96c6089185bdc2a67180a (patch)
treec5b4e4cffbb3ee4ad2498c2251892bd457e9d3c7 /users/seth/programs/git.nix
parent5d3045a0769af3a94fba7b5cf646e8498aaef595 (diff)
alejandra -> nixfmt-rfc-style
Diffstat (limited to 'users/seth/programs/git.nix')
-rw-r--r--users/seth/programs/git.nix27
1 files changed, 17 insertions, 10 deletions
diff --git a/users/seth/programs/git.nix b/users/seth/programs/git.nix
index 674b3c8..4832bc1 100644
--- a/users/seth/programs/git.nix
+++ b/users/seth/programs/git.nix
@@ -1,13 +1,15 @@
-{
- config,
- lib,
- ...
-}: let
+{ config, lib, ... }:
+let
cfg = config.seth.programs.git;
-in {
+in
+{
options.seth.programs.git = {
- enable = lib.mkEnableOption "Git configuration settings" // {default = config.seth.enable;};
- gh.enable = lib.mkEnableOption "GitHub CLI support" // {default = cfg.enable;};
+ enable = lib.mkEnableOption "Git configuration settings" // {
+ default = config.seth.enable;
+ };
+ gh.enable = lib.mkEnableOption "GitHub CLI support" // {
+ default = cfg.enable;
+ };
};
config = lib.mkIf cfg.enable {
@@ -24,7 +26,10 @@ in {
gitCredentialHelper = {
enable = true;
- hosts = ["https://github.com" "https://github.example.com"];
+ hosts = [
+ "https://github.com"
+ "https://github.example.com"
+ ];
};
};
@@ -38,7 +43,9 @@ in {
};
extraConfig = {
- init = {defaultBranch = "main";};
+ init = {
+ defaultBranch = "main";
+ };
};
signing = {