mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
20 lines
477 B
Nix
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;
|
|
};
|
|
}
|