mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Services] Allow X11 forwarding, disable root password auth by default
This commit is contained in:
parent
ebe5406925
commit
2d2c8d4ce4
1 changed files with 7 additions and 3 deletions
10
services.nix
10
services.nix
|
|
@ -46,9 +46,13 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
# services.openssh.permitRootLogin = "prohibit-password";
|
||||
services.openssh.permitRootLogin = mkDefault "yes";
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = mkDefault "prohibit-password";
|
||||
forwardX11 = mkDefault true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22 ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue