Allow reverse SSH via regular trusted keys

This commit is contained in:
2026-04-29 17:10:49 +02:00
parent 2bf2f60bde
commit 7c4a46bd53
2 changed files with 17 additions and 2 deletions

View File

@@ -1,4 +1,10 @@
{ pkgs, ... }:
{
pkgs,
lib,
config,
trustedSSHKeys,
...
}:
{
home.packages = with pkgs; [
dosbox-staging # dosbox appears broken on darwin
@@ -11,6 +17,12 @@
antigravity
];
home.activation.setupAuthorizedKeys = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
run install -m 0600 -D \
${pkgs.writeText "keys" (builtins.concatStringsSep "\n" trustedSSHKeys)} \
${config.home.homeDirectory}/.ssh/ephemeral_sshd/authorized_keys
'';
# TODO: consider
# https://nest.pijul.com/yonkeltron/macOS-nix-config:main/ZLDSMIXK5XFW6.EIAAA
# and