liminalOS/modules/linux/wsl/default.nix

20 lines
287 B
Nix

{
inputs,
config,
lib,
...
}:
let
cfg = config.liminalOS.wsl;
in
{
options.liminalOS.wsl = {
enable = lib.mkEnableOption "WSL";
};
config.wsl = lib.mkIf cfg.enable {
enable = true;
defaultUser = config.liminalOS.username;
useWindowsDriver = true;
};
}