aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/development/git/assertions.nix8
-rw-r--r--modules/development/git/default.nix10
-rw-r--r--users/arpit.nix1
3 files changed, 0 insertions, 19 deletions
diff --git a/modules/development/git/assertions.nix b/modules/development/git/assertions.nix
index 02acd92..c66714a 100644
--- a/modules/development/git/assertions.nix
+++ b/modules/development/git/assertions.nix
@@ -3,14 +3,6 @@
{
assertions = [
{
- assertion =
- !config.development.git.useSSH || (config.development.git.enable && config.security.ssh.enable);
- message = ''
- development.git.useSSH is enabled but security.ssh.enable is not.
- SSH must be enabled (security.ssh.enable = true) to use SSH for git.
- '';
- }
- {
assertion = !config.development.git.signing.signByDefault || config.development.git.enable;
message = ''
development.git.signing.signByDefault is enabled but development.git.enable is not.
diff --git a/modules/development/git/default.nix b/modules/development/git/default.nix
index a62f866..abfbf43 100644
--- a/modules/development/git/default.nix
+++ b/modules/development/git/default.nix
@@ -30,8 +30,6 @@
description = "Git email.";
};
- useSSH = lib.mkEnableOption "Use SSH instead of HTTPS for common git platforms.";
-
signing = {
key = lib.mkOption {
type = lib.types.nullOr lib.types.str;
@@ -64,14 +62,6 @@
pull.rebase = true;
}
- (lib.optionalAttrs config.development.git.useSSH {
- url."git@github.com:".insteadOf = "https://github.com/";
- url."git@gitlab.com:".insteadOf = "https://gitlab.com/";
- url."git@bitbucket.org:".insteadOf = "https://bitbucket.org/";
- url."git@codeberg.org:".insteadOf = "https://codeberg.org/";
- url."git@git.sr.ht:".insteadOf = "https://git.sr.ht/";
- })
-
(lib.optionalAttrs config.development.delta.enable {
core.pager = "delta";
interactive.diffFilter = "delta --color-only";
diff --git a/users/arpit.nix b/users/arpit.nix
index 989245e..465d6e1 100644
--- a/users/arpit.nix
+++ b/users/arpit.nix
@@ -31,7 +31,6 @@
development.bruno.enable = true;
development.delta.enable = true;
development.git.enable = true;
- development.git.useSSH = true;
development.git.signing.signByDefault = true;
development.lazygit.enable = true;
development.nixvim.enable = true;