Fix Docker Integration with WSL2

Borrowed from https://github.com/nix-community/NixOS-WSL/issues/90
This commit is contained in:
Dave Gallant
2022-07-03 04:30:52 +00:00
parent d74ec8f89b
commit 9190fb143c
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ with lib; {
systemd.services.docker-desktop-proxy = {
description = "Docker Desktop proxy";
script = ''
${config.wsl.automountPath}/wsl/docker-desktop/docker-desktop-proxy -docker-desktop-root ${config.wsl.automountPath}/wsl/docker-desktop
${config.wsl.automountPath}/wsl/docker-desktop/docker-desktop-user-distro proxy --docker-desktop-root ${config.wsl.automountPath}/wsl/docker-desktop
'';
wantedBy = ["multi-user.target"];
serviceConfig = {

View File

@@ -22,7 +22,7 @@ with lib; {
};
defaultUser = mkOption {
type = str;
default = "nixos";
default = "dave";
description = "The name of the default user";
};
startMenuLaunchers = mkEnableOption "shortcuts for GUI applications in the windows start menu";