mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-10 03:51:46 +02:00
fix(security): tighten desktop remote access
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
# in modules/nixos/desktop/ssh.nix (needed for GUI forwarding).
|
||||
X11Forwarding = lib.mkDefault false;
|
||||
# root user is used for remote deployment, so we need to allow it
|
||||
PermitRootLogin = "prohibit-password";
|
||||
PermitRootLogin = lib.mkDefault "prohibit-password";
|
||||
PasswordAuthentication = false; # disable password login
|
||||
};
|
||||
openFirewall = true;
|
||||
|
||||
Reference in New Issue
Block a user