liminalOS/modules/linux/wsl/default.nix
Youwen Wu 4314399a1c
Revert 1 commits
8424b02 'refactor: do not depend on inputs for modules'
2024-12-25 22:50:35 -08:00

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;
};
}