2024-11-26 17:15:31 -08:00
|
|
|
{
|
2024-12-25 22:50:35 -08:00
|
|
|
inputs,
|
2024-12-22 22:26:41 -08:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.liminalOS.wsl;
|
|
|
|
in
|
|
|
|
{
|
2024-12-22 23:26:13 -08:00
|
|
|
imports = [
|
2024-12-25 22:50:35 -08:00
|
|
|
inputs.nixos-wsl.nixosModules.default
|
2024-11-26 17:15:31 -08:00
|
|
|
];
|
|
|
|
|
2024-12-23 04:29:01 -08:00
|
|
|
options.liminalOS.wsl = {
|
2024-12-22 23:26:13 -08:00
|
|
|
enable = lib.mkEnableOption "WSL";
|
2024-12-22 22:26:41 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
config.wsl = lib.mkIf cfg.enable {
|
2024-11-26 17:15:31 -08:00
|
|
|
enable = true;
|
2024-12-22 22:26:41 -08:00
|
|
|
defaultUser = config.liminalOS.username;
|
2024-11-26 17:15:31 -08:00
|
|
|
useWindowsDriver = true;
|
|
|
|
};
|
|
|
|
}
|