diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-09-02 17:37:43 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-09-02 17:37:43 +0530 |
| commit | f4752f0cf338b89084cbf917b2de88113aeac9f7 (patch) | |
| tree | 78a7ad7917c97cd13c099437f1abfbfffa00c646 /modules/development | |
| parent | 627c1f723302f949e28d9df5a3acb380186b4c44 (diff) | |
| download | home-manager-config-f4752f0cf338b89084cbf917b2de88113aeac9f7.tar.gz home-manager-config-f4752f0cf338b89084cbf917b2de88113aeac9f7.zip | |
feat(development/git): removed the useSSH option
- development.git.useSSH was a pretty pointless option, if ssh needs to
be used we will use the ssh url or http url depending on needs
Diffstat (limited to 'modules/development')
| -rw-r--r-- | modules/development/git/assertions.nix | 8 | ||||
| -rw-r--r-- | modules/development/git/default.nix | 10 |
2 files changed, 0 insertions, 18 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"; |
