mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-10 20:11:47 +02:00
fix(security): tighten desktop remote access
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
{
|
||||
# Desktops keep X11 forwarding (current behavior, needed for GUI forwarding);
|
||||
# servers default to off (see modules/nixos/base/ssh.nix).
|
||||
services.openssh.settings.X11Forwarding = true;
|
||||
services.openssh.settings = {
|
||||
PermitRootLogin = "no";
|
||||
X11Forwarding = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user