summaryrefslogtreecommitdiff
path: root/users/seth/module/programs/git.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-05 11:35:18 -0400
committerGitHub <[email protected]>2024-05-05 11:35:18 -0400
commit34a7a042a36b63eb6b900932b1e420e4b6014a57 (patch)
tree40dace9b4bb7b6e99c5d54165d8eb203963f5306 /users/seth/module/programs/git.nix
parent9380483bdf038149fc308698e9f115b1474a0c85 (diff)
simplify some things (#353)
* flake: drop flake-parts * flake: add back flake-parts * flake: use flake module again for configurations
Diffstat (limited to 'users/seth/module/programs/git.nix')
-rw-r--r--users/seth/module/programs/git.nix54
1 files changed, 0 insertions, 54 deletions
diff --git a/users/seth/module/programs/git.nix b/users/seth/module/programs/git.nix
deleted file mode 100644
index 674b3c8..0000000
--- a/users/seth/module/programs/git.nix
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- config,
- lib,
- ...
-}: let
- cfg = config.seth.programs.git;
-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;};
- };
-
- config = lib.mkIf cfg.enable {
- programs = {
- gh = lib.mkIf cfg.gh.enable {
- enable = true;
- settings = {
- git_protocol = "https";
- editor = "nvim";
- prompt = "enabled";
- # workaround for https://github.com/nix-community/home-manager/issues/474
- version = 1;
- };
-
- gitCredentialHelper = {
- enable = true;
- hosts = ["https://github.com" "https://github.example.com"];
- };
- };
-
- git = {
- enable = true;
-
- difftastic = {
- enable = true;
- background = "dark";
- display = "inline";
- };
-
- extraConfig = {
- init = {defaultBranch = "main";};
- };
-
- signing = {
- key = "D31BD0D494BBEE86";
- signByDefault = true;
- };
-
- userEmail = "[email protected]";
- userName = "seth";
- };
- };
- };
-}