Merge pull request 'fix(wsl): disable systemd-ssh-proxy ssh_config include' (#13) from fix/wsl-ssh-systemd-proxy-include into main
CI / flake (push) Successful in 1m58s
CI / flake (push) Successful in 1m58s
Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
@@ -42,6 +42,15 @@
|
|||||||
|
|
||||||
networking.resolvconf.enable = false;
|
networking.resolvconf.enable = false;
|
||||||
|
|
||||||
|
# Drop the systemd-ssh-proxy Include from the generated /etc/ssh/ssh_config.
|
||||||
|
# The NixOS-WSL store is a read-only VHD whose files are owned by nobody
|
||||||
|
# (65534), not root. OpenSSH permission-checks Include'd config files and
|
||||||
|
# rejects any not owned by root or the caller, so the default include fails
|
||||||
|
# with "Bad owner or permissions" and breaks ssh/git for every command. The
|
||||||
|
# proxy plugin only matters for `ssh unix/…` / `vsock` to local machined VMs,
|
||||||
|
# which WSL does not use.
|
||||||
|
programs.ssh.systemd-ssh-proxy.enable = false;
|
||||||
|
|
||||||
## patch the script
|
## patch the script
|
||||||
systemd.services.docker-desktop-proxy.script = lib.mkForce ''${config.wsl.wslConf.automount.root}/wsl/docker-desktop/docker-desktop-user-distro proxy --docker-desktop-root ${config.wsl.wslConf.automount.root}/wsl/docker-desktop "C:\Program Files\Docker\Docker\resources"'';
|
systemd.services.docker-desktop-proxy.script = lib.mkForce ''${config.wsl.wslConf.automount.root}/wsl/docker-desktop/docker-desktop-user-distro proxy --docker-desktop-root ${config.wsl.wslConf.automount.root}/wsl/docker-desktop "C:\Program Files\Docker\Docker\resources"'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user