nixos/modules/system/wsl.nix
2025-12-14 04:09:59 +01:00

20 lines
477 B
Nix

{
config,
lib,
...
}: {
options.fireproof.wsl.enable = lib.mkEnableOption "Enable WSL configuration";
config = lib.mkIf config.fireproof.wsl.enable {
wsl = {
enable = true;
defaultUser = config.fireproof.username;
startMenuLaunchers = true;
interop.includePath = false;
};
# WSL doesn't use a bootloader - disable systemd-boot
boot.loader.systemd-boot.enable = false;
boot.loader.efi.canTouchEfiVariables = false;
};
}