mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-04 11:36:20 +01:00
fix(ssh): make sandboxed ssh work on Linux (#390)
This commit is contained in:
1 parent
187577b2da
commit
dc65254511
3 files changed
+27
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user