diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-09-30 17:26:38 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-10-02 13:24:29 -0400 |
| commit | f3336037e87ec4f97c00397cc81fec5e245ea4f5 (patch) | |
| tree | 540788453e79913739e2e0d6f6d87937148f439f /home/ssh.nix | |
| parent | ab6f8b3f945bf4b532e01b9585a2e228ac332c42 (diff) | |
added ssh cert stuff
Diffstat (limited to 'home/ssh.nix')
| -rw-r--r-- | home/ssh.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/home/ssh.nix b/home/ssh.nix new file mode 100644 index 0000000..f0e75c7 --- /dev/null +++ b/home/ssh.nix @@ -0,0 +1,17 @@ +{ + principals, + extraKeys ? [ ], +}: + +{ + lib, + ... +}: + +{ + home.file.".ssh/authorized_keys".text = '' + cert-authority,principals="${lib.concatStringsSep "," principals}" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuc4HCdyEMu4uiYhlokSXmu+68hkm7j6CqVwjDkCeSj grace.pink + sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIA6Eq2yVsZrCH8so7f3ygH0UWp6WkOxbhLNFC9QewKwoAAAABHNzaDo= grace.pink + ${lib.concatStringsSep "\n" extraKeys} + ''; +} |
