common: allow x forwarding

keep-around/cc691d10f55183f66a42df37ed1d07b95d8d8094
hexchen 2020-12-03 20:54:49 +00:00
parent 4fae006a64
commit 322d63dd45
No known key found for this signature in database
GPG Key ID: A3964C0D77F38CC9
1 changed files with 9 additions and 6 deletions

View File

@ -31,12 +31,15 @@ in {
nix.trustedUsers = [ "root" "@wheel" ];
environment.variables.EDITOR = "vim";
services.openssh.enable = true;
services.openssh.ports = lib.mkDefault [ 62954 ];
services.openssh.passwordAuthentication = false;
services.openssh.challengeResponseAuthentication = false;
services.openssh.permitRootLogin = lib.mkDefault "prohibit-password";
services.openssh.extraConfig = "StreamLocalBindUnlink yes";
services.openssh = {
enable = true;
ports = lib.mkDefault [ 62954 ];
passwordAuthentication = false;
challengeResponseAuthentication = false;
permitRootLogin = lib.mkDefault "prohibit-password";
extraConfig = "StreamLocalBindUnlink yes";
forwardX11 = true;
};
security.sudo.wheelNeedsPassword = lib.mkDefault false;
i18n.defaultLocale = "en_IE.UTF-8";