dotfiles/nix-conf/system/wsl-configuration.nix

30 lines
641 B
Nix
Executable File

{ lib, ... }:
with lib;
let
nixos-wsl = import ./nixos-wsl;
in
{
imports = [
./configuration.nix
nixos-wsl.nixosModules.wsl
];
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";
}