mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 05:59:51 -07:00
refactor: modularize audio-prod, audio, wsl, wine, networking
This commit is contained in:
parent
5cbd9e60cb
commit
ee6f29eb57
9 changed files with 200 additions and 73 deletions
|
@ -1,12 +1,31 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.liminalOS.wsl;
|
||||
in
|
||||
{
|
||||
imports = lib.mkIf cfg.enable [
|
||||
inputs.nixos-wsl.nixosModules.default
|
||||
];
|
||||
|
||||
wsl = {
|
||||
options = {
|
||||
enable = lib.mkEnableOption "wsl";
|
||||
module = lib.mkOption {
|
||||
type = lib.types.submodule;
|
||||
default = inputs.nixos-wsl.nixosModules.default;
|
||||
description = ''
|
||||
NixOS WSL module. Defaults to <https://github.com/nix-community/NixOS-WSL>
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config.wsl = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
defaultUser = "youwen";
|
||||
defaultUser = config.liminalOS.username;
|
||||
useWindowsDriver = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue