Files
ccl-nixos-dotfiles/config/hosts/imxyy-nix-wsl/nixos.nix
2025-04-13 15:09:14 +08:00

18 lines
318 B
Nix

{ username, nixos-wsl, ... }:
{
imports = [
nixos-wsl.nixosModules.wsl
];
wsl.enable = true;
wsl.defaultUser = "${username}";
services.openssh = {
enable = true;
settings = {
# Forbid root login through SSH.
PermitRootLogin = "no";
PasswordAuthentication = true;
};
};
}