mirror of
https://github.com/davegallant/nix-config
synced 2025-08-08 10:02:26 +00:00
Fix Docker Integration with WSL2
Borrowed from https://github.com/nix-community/NixOS-WSL/issues/90
This commit is contained in:
@@ -22,7 +22,7 @@ with lib; {
|
|||||||
systemd.services.docker-desktop-proxy = {
|
systemd.services.docker-desktop-proxy = {
|
||||||
description = "Docker Desktop proxy";
|
description = "Docker Desktop proxy";
|
||||||
script = ''
|
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"];
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
@@ -22,7 +22,7 @@ with lib; {
|
|||||||
};
|
};
|
||||||
defaultUser = mkOption {
|
defaultUser = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
default = "nixos";
|
default = "dave";
|
||||||
description = "The name of the default user";
|
description = "The name of the default user";
|
||||||
};
|
};
|
||||||
startMenuLaunchers = mkEnableOption "shortcuts for GUI applications in the windows start menu";
|
startMenuLaunchers = mkEnableOption "shortcuts for GUI applications in the windows start menu";
|
||||||
|
Reference in New Issue
Block a user