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

30 lines
641 B
Nix
Raw Normal View History

{ lib, ... }:
2022-11-14 07:50:02 +00:00
with lib;
let
nixos-wsl = import ./nixos-wsl;
in
{
imports = [
./configuration.nix
nixos-wsl.nixosModules.wsl
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";
2022-11-14 07:50:02 +00:00
# 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";
}