diff --git a/docs/setup.sh b/docs/setup.sh index 88200c66..a7cf03b2 100755 --- a/docs/setup.sh +++ b/docs/setup.sh @@ -37,16 +37,16 @@ sudo ssh-to-pgp \ # Set up ssh keys echo ">>> Setting up SSH Keys..... " -ssh-keygen -t rsa -b 8192 -f ~/.ssh/id_rsa -N "" +ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N "" echo "" >> ./keys/ssh/keys.txt echo "# `whoami`@`hostname`" >> ./keys/ssh/keys.txt -cat /home/albert/.ssh/id_rsa.pub >> ./keys/ssh/keys.txt +cat /home/albert/.ssh/id_ed25519.pub >> ./keys/ssh/keys.txt echo ">>> Setting up Distributed Build SSH Keys..... " -sudo ssh-keygen -t rsa -b 8192 -f /root/.ssh/id_rsa -N "" +sudo ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N "" echo "" >> ./keys/ssh/builder-keys.txt echo "# root@`hostname`" >> ./keys/ssh/builder-keys.txt -sudo cat /root/.ssh/id_rsa.pub >> ./keys/ssh/builder-keys.txt +sudo cat /root/.ssh/id_ed25519.pub >> ./keys/ssh/builder-keys.txt # Add all changes to git and and push echo ">>> Pushing to git..... " diff --git a/nixos/users/root/default.nix b/nixos/users/root/default.nix index b43faf7b..dc56d937 100644 --- a/nixos/users/root/default.nix +++ b/nixos/users/root/default.nix @@ -1,3 +1,5 @@ { config, desktop, lib, pkgs, ... }: { - users.users.root.openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/builder-keys.txt ]; + users.users.root.openssh.authorizedKeys.keyFiles = [ + ../../../keys/ssh/keys.txt +]; } \ No newline at end of file