fix(ssh): make sandboxed ssh work on Linux (#390)

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-06 15:20:53 +08:00
1 parent 187577b2da
commit dc65254511
3 files changed
+27

No files matched your search

+7
View File
@@ -18,6 +18,13 @@
openFirewall = true;
};
# NixOS appends an `Include` of systemd's ssh_config.d drop-in to
# /etc/ssh/ssh_config, and OpenSSH re-applies SSHCONF_CHECKPERM to included
# files. A bubblewrap sandbox (`--unshare-user`) exposes root-owned store
# files as `nobody`, which would abort ssh there. We do not use
# systemd-ssh-proxy (.host, machine/*, unix/*, vsock/*).
programs.ssh.systemd-ssh-proxy.enable = false;
# Terminfo for the terminals we use, so `$TERM` resolves on hosts we SSH into.
environment.systemPackages = [
pkgs.ghostty.terminfo