Add gitlab known hosts

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-28 15:38:14 +01:00
parent 084fda4ba6
commit 7f9a1dcb66
6 changed files with 35 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
let
selfPkgs = inputs.self.packages.${system};
in
# Configured for the root user to allow private builds
{
sops.secrets."ssh/sas/ed25519/key" = {
sopsFile = "${inputs.secrets}/sas/secrets.yaml";

View File

@@ -93,7 +93,10 @@ in
userKnownHostsFiles =
with selfPkgs;
(
[ ssh-known-hosts-github ]
[
ssh-known-hosts-github
ssh-known-hosts-gitlab
]
++ lib.lists.optionals config.sas.build.private [
ssh-known-hosts-sas-gitlab
ssh-known-hosts-sas-gerrit

View File

@@ -39,7 +39,10 @@ in
};
};
userKnownHostsFiles = with selfPkgs; [ ssh-known-hosts-github ];
userKnownHostsFiles = with selfPkgs; [
ssh-known-hosts-github
ssh-known-hosts-gitlab
];
};
};
}

View File

@@ -39,7 +39,10 @@ in
};
};
userKnownHostsFiles = with selfPkgs; [ ssh-known-hosts-github ];
userKnownHostsFiles = with selfPkgs; [
ssh-known-hosts-github
ssh-known-hosts-gitlab
];
};
};
}

View File

@@ -87,6 +87,7 @@ in
shlink-web-client = callPackage ./shlink-web-client { };
ssh-known-hosts-github = callPackage ./ssh/known-hosts/github { };
ssh-known-hosts-gitlab = callPackage ./ssh/known-hosts/gitlab { };
yazi-plugin-custom-shell = callPackage ./yazi/plugins/custom-shell { };

View File

@@ -0,0 +1,21 @@
{
pkgs,
inputs,
system,
...
}:
pkgs.stdenv.mkDerivation {
pname = "ssh-known-hosts-github";
version = "0-unstable-2025-02-25";
src = inputs.self.lib.${system}.fetchers.sshKnownHosts {
host = "gitlab.com";
hash = "sha256-5flUNj4vKn1Y2YE8bkUcsW3kQLRKn8WB3uPUxlhZMTk=";
};
phases = [ "installPhase" ];
installPhase = ''
cp $src $out
'';
}