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

25 lines
636 B
Nix
Raw Normal View History

2023-06-18 00:46:31 +00:00
{lib, ...}:
with lib; let
2022-11-14 07:50:02 +00:00
nixos-wsl = import ./nixos-wsl;
2023-06-18 00:46:31 +00:00
in {
2022-11-14 07:50:02 +00:00
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";
}