mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 13:12:10 -08:00
24 lines
349 B
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;
|
|
};
|
|
}
|