From fc221684e2de9cc1ba5671dc8b8d6a327416c6fa Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Thu, 24 Aug 2023 09:59:11 +0200 Subject: [PATCH] feat: added bitbucket ssh key --- modules/home-manager/ssh/bitbucket_ed25519.pub | 1 + modules/home-manager/ssh/default.nix | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 modules/home-manager/ssh/bitbucket_ed25519.pub diff --git a/modules/home-manager/ssh/bitbucket_ed25519.pub b/modules/home-manager/ssh/bitbucket_ed25519.pub new file mode 100644 index 0000000..7fdfd64 --- /dev/null +++ b/modules/home-manager/ssh/bitbucket_ed25519.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFhkuJP+wvKrWvzSn+14EMxPflb/L/yKiAPUEKu3hNFx rilla@penguin diff --git a/modules/home-manager/ssh/default.nix b/modules/home-manager/ssh/default.nix index 6fcd5d8..54bd268 100644 --- a/modules/home-manager/ssh/default.nix +++ b/modules/home-manager/ssh/default.nix @@ -10,10 +10,11 @@ let }; in { - home.file.".ssh/id_rsa.pub".source = ./id_rsa_gpg.pub; - home.file.".ssh/id_rsa_-cert.pub".source = ./id_rsa_gpg-cert.pub; home.file.".ssh/id_rsa_gpg.pub".source = ./id_rsa_gpg.pub; home.file.".ssh/id_rsa_gpg-cert.pub".source = ./id_rsa_gpg-cert.pub; + + home.file.".ssh/bitbucket_ed25519.pub".source = ./bitbucket_ed25519.pub; + programs.ssh = { enable = true; matchBlocks = { @@ -39,7 +40,7 @@ in "bitbucket.org" = defaultBlock // { user = "git"; - identityFile = "~/.ssh/bitbucket_rsa"; + identityFile = "~/.ssh/bitbucket_ed25519"; }; };