2022-11-14 07:50:02 +00:00
|
|
|
{ lib, pkgs, config, modulesPath, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
nixos-wsl = import ./nixos-wsl;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
2022-11-14 15:59:12 +00:00
|
|
|
/etc/nixos/hardware-configuration.nix
|
2022-11-14 07:50:02 +00:00
|
|
|
nixos-wsl.nixosModules.wsl
|
2022-11-14 15:59:12 +00:00
|
|
|
./configuration.nix
|
2022-11-14 07:50:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
wsl = {
|
|
|
|
enable = true;
|
|
|
|
automountPath = "/mnt";
|
|
|
|
defaultUser = "nixos"; # if change defaultUser, make sure uid to be 1000 (first user)
|
|
|
|
startMenuLaunchers = true;
|
|
|
|
automountOptions = "drvfs,metadata,uid=1000,gid=100";
|
|
|
|
# Enable native Docker support
|
|
|
|
# docker-native.enable = true;
|
|
|
|
|
|
|
|
# Enable integration with Docker Desktop (needs to be installed)
|
|
|
|
docker-desktop.enable = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
# users.users.<defaultUser>.uid = 1000;
|
|
|
|
# networking.hostName = "nixos";
|
|
|
|
|
|
|
|
}
|