feat: more wsl tweaks

This commit is contained in:
Nickolaj Jepsen 2025-12-14 04:09:59 +01:00
parent 50289dcc0d
commit 72a3dc6c5a
10 changed files with 104 additions and 40 deletions

20
modules/system/wsl.nix Normal file
View file

@ -0,0 +1,20 @@
{
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;
};
}