Files
nixos-dotfiles/config/hosts/imxyy-nix-wsl/nixos.nix
2025-04-18 19:42:01 +08:00

21 lines
374 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;
};
};
# fix vscode remote
programs.nix-ld.enable = true;
}