Comments (5)
I have experience with this and can take a look
from nixos-wsl.
Difficulty is @nzbr, users would have to compile their own WSL2 kernel and modify/create a .wslconfig file to point and use the kernel with nftables modules in. Happy to provide instructions but it's not for the faint of heart. From my understanding we can't change the kernel in the NixOS distro because WSL provides the kernel itself.
Happy to add a write up/README.md PR, what's your thoughts?
from nixos-wsl.
I have activated the repos wiki. You should be able to put a page there now
Another option (although I don't know if it's feasible) would be to somehow override the change that causes docker to break in NixOS 21.11. It should be possible somehow, given that it worked in 20.09
from nixos-wsl.
The difference is systemd v249 has switched to nftables. You can add --iptables=false
(I think, from memory!) to get the docker service to start inside NixOS WSL but you then have no container networking which isn't very fun!
from nixos-wsl.
This fixes it for me:
nixpkgs.overlays = [
(self: super: {
docker = super.docker.override { iptables = pkgs.iptables-legacy; };
})
];
No modified kernel required
from nixos-wsl.
Related Issues (20)
- Embed version information in channels HOT 1
- nu shell (nushell) with no PATH set on nixos-wsl HOT 15
- How can I run NixOS on WSL2 on Windows 11 inside VirtualBox?
- Unable to connect to internet and update channels upon creating NixOS WSL2 instance HOT 8
- Launcher: Check if WSL is installed
- Launcher: Start in home directory if started from shortcut
- Mount path /tmp/.X11-unix/X0 is not canonical (contains a symlink) HOT 20
- How to edit wsl.conf for initial config? HOT 4
- nvidia-container-toolkit-cdi-generator not work HOT 5
- `sudo` did not request for a password HOT 4
- Configure NIX_SSL_CERT_FILE with WSL2 and ZSCALER or similar enterprise Proxy HOT 1
- Rancher desktop support HOT 2
- How-To Doc HOT 1
- Document how to convert an existing installation to using flakes HOT 1
- /run/user/<id>/wayland-0 does not exist - Wayland GUI applications do not work HOT 2
- Hardware acceleration does not work without LD_LIBRARY_PATH hacks HOT 7
- doc bug: possibly missing "--version 2"
- Action Required: Fix Renovate Configuration
- User session immediately ends due to shell wrapper HOT 1
- Use of environment.sessionVariables.PATH interferes with system rebuild
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-wsl.