fix: SSH key fixes

This commit is contained in:
Madeleine Sydney
2025-02-18 21:11:43 -07:00
parent eceb06c654
commit b4a9bd2d89
10 changed files with 23 additions and 5 deletions

View File

@@ -1 +0,0 @@
age1qayk0d0f765v57pedm7mtau6qkmv8rh6jtaqm40g5g9armaty4jqc0v0y2

View File

@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPVnrTT1npsdy8f6CCdmRdTMExSgVpTKgGVtq1wAaTZV crumb@nixos-testbed

View File

@@ -8,7 +8,7 @@
"$y$j9T$aEFDDwdTZbAc6VQRXrkBJ0$K8wxTGTWDihyX1wxJ.ZMH//wmQFfrGGUkLkxIU0Lyq8";
openssh.authorizedKeys.keyFiles = [
../../public-keys/crumb-at-guix-rebound.pub
../../public-keys/ssh/crumb-at-guix-rebound.pub
];
};

View File

@@ -2,6 +2,13 @@
let mutableSymlink = config.lib.file.mkOutOfStoreSymlink;
in lib.mkMerge [
{
home.file.".ssh/id_ed25519".source =
mutableSymlink "/persist/private-keys/ssh/crumb-at-nixos-testbed";
home.file.".ssh/id_ed25519.pub".source =
../../public-keys/ssh/crumb-at-nixos-testbed.pub;
}
{
### Some basic impermanence setup.

View File

@@ -130,10 +130,10 @@ for example when calling `shell'.")
(current-buffer))))))
(with-eval-after-load 'comint
(require 'syd-kanagawa)
(custom-theme-set-faces
'user
;; Default prompt face is very ugly. Give it a more subtle look.
(require 'syd-kanagawa)
`(comint-highlight-prompt
((t :foreground ,(syd-kanagawa-get 'old-white)
:background unspecified

View File

@@ -19,14 +19,16 @@
"$y$j9T$aEFDDwdTZbAc6VQRXrkBJ0$K8wxTGTWDihyX1wxJ.ZMH//wmQFfrGGUkLkxIU0Lyq8";
openssh.authorizedKeys.keyFiles = [
../../public-keys/crumb-at-guix-rebound.pub
../../public-keys/crumble-at-fruitbook.pub
../../public-keys/ssh/crumb-at-guix-rebound.pub
../../public-keys/ssh/crumble-at-fruitbook.pub
../../public-keys/ssh/crumb-at-nixos-testbed.pub
];
};
homeConfiguration = { config, lib, pkgs, ... }: {
imports = [
../crumb/programs/nvim.nix
./files.nix
];
programs.bash.enable = true;

9
users/lain/files.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
let mutableSymlink = config.lib.file.mkOutOfStoreSymlink;
in {
home.file.".ssh/id_ed25519".source =
mutableSymlink "/persist/private-keys/ssh/lain-at-deertopia";
home.file.".ssh/id_ed25519.pub".source =
../../public-keys/ssh/lain-at-deertopia.pub;
}