From 3b6c42ebe3b6d45313cf3a425a79278069d32ae8 Mon Sep 17 00:00:00 2001 From: Jelle Spreeuwenberg Date: Wed, 22 Apr 2026 01:28:01 +0200 Subject: [PATCH] feat: remove ssh profile generation --- modules/features/source-control.nix | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/modules/features/source-control.nix b/modules/features/source-control.nix index 46c032c..8517425 100644 --- a/modules/features/source-control.nix +++ b/modules/features/source-control.nix @@ -1,10 +1,6 @@ { config, lib, ... }: let homeModules = config.flake.modules.homeManager; - serviceHostNames = { - github = "github.com"; - gitlab = "gitlab.com"; - }; in { flake.modules.homeManager.source-control = @@ -31,7 +27,6 @@ in inherit matches name; isValid = matches != null; scope = if matches == null then null else builtins.elemAt matches 1; - service = if matches == null then null else builtins.elemAt matches 0; } ) profileNames; @@ -141,20 +136,5 @@ in condition = "gitdir:${gitRoot.root}/"; contents = gitConfigForScope gitRoot.scope; }) gitRoots; - - programs.ssh = { - enable = true; - matchBlocks = lib.listToAttrs ( - map ( - profile: - lib.nameValuePair profile.name { - hostname = serviceHostNames.${profile.service}; - identitiesOnly = true; - identityFile = privateKeyPathForScope profile.scope; - user = "git"; - } - ) validProfiles - ); - }; }; }