mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 15:56:34 +01:00
22 lines
387 B
Nix
22 lines
387 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
services = {
|
|
openssh = {
|
|
enable = true;
|
|
ports = [ 22 ];
|
|
openFirewall = true;
|
|
allowSFTP = true;
|
|
settings = {
|
|
X11forwarding = true;
|
|
PermitRootLogin = "no";
|
|
passwordAuthentication = true;
|
|
kbdInteractiveAuthentication = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [ sshfs ];
|
|
}
|
|
|
|
|