Update Cfg and add proxy/wsl
This commit is contained in:
13
modules/nixos/system/hw/wsl/default.nix
Normal file
13
modules/nixos/system/hw/wsl/default.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ lib, config, pkgs, ... }: {
|
||||
config = lib.mkIf (config.syscfg.extra.wsl) {
|
||||
wsl.enable = true;
|
||||
wsl.defaultUser = config.syscfg.defaultUser;
|
||||
wsl.extraBin = with pkgs; [
|
||||
{ src = "${coreutils}/bin/uname"; }
|
||||
{ src = "${coreutils}/bin/dirname"; }
|
||||
{ src = "${coreutils}/bin/readlink"; }
|
||||
];
|
||||
|
||||
wsl.wslConf.network.generateHosts = false;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user