liminalOS/modules/linux/wsl/default.nix

24 lines
349 B
Nix

{
inputs,
config,
lib,
...
}:
let
cfg = config.liminalOS.wsl;
in
{
imports = [
inputs.nixos-wsl.nixosModules.default
];
options.liminalOS.wsl = {
enable = lib.mkEnableOption "WSL";
};
config.wsl = lib.mkIf cfg.enable {
enable = true;
defaultUser = config.liminalOS.username;
useWindowsDriver = true;
};
}