mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +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 {
|
config = mkIf cfg.enable {
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh = {
|
||||||
# services.openssh.permitRootLogin = "prohibit-password";
|
enable = true;
|
||||||
services.openssh.permitRootLogin = mkDefault "yes";
|
permitRootLogin = mkDefault "prohibit-password";
|
||||||
|
forwardX11 = mkDefault true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 22 ];
|
networking.firewall.allowedUDPPorts = [ 22 ];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue