liminalOS/modules/linux/wsl/default.nix

25 lines
349 B
Nix
Raw Normal View History

2024-11-26 17:15:31 -08:00
{
inputs,
config,
lib,
...
}:
let
cfg = config.liminalOS.wsl;
in
{
2024-12-22 23:26:13 -08:00
imports = [
inputs.nixos-wsl.nixosModules.default
2024-11-26 17:15:31 -08:00
];
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;
};
}