liminalOS/modules/linux/wsl/default.nix

21 lines
287 B
Nix
Raw Permalink Normal View History

2024-11-26 17:15:31 -08:00
{
inputs,
config,
lib,
...
}:
let
cfg = config.liminalOS.wsl;
in
{
options.liminalOS.wsl = {
2024-12-22 23:26:13 -08:00
enable = lib.mkEnableOption "WSL";
};
config.wsl = lib.mkIf cfg.enable {
2024-11-26 17:15:31 -08:00
enable = true;
defaultUser = config.liminalOS.username;
2024-11-26 17:15:31 -08:00
useWindowsDriver = true;
};
}