!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

343 Members
https://github.com/nix-community/NixOS-WSL59 Servers

Load older messages


SenderMessageTime
15 Jan 2023
@k900:0upti.meK900I'm honestly not too sure how the installer tarballs work, I just have the config integrated in my flake14:16:24
16 Jan 2023
@dx1nt:matrix.orgdx1nt left the room.02:13:32
@sandro:supersandro.deSandro 🐧could be because of noXLibs maybe?15:03:33
@k900:0upti.meK900Didn't we disable that15:05:05
@sandro:supersandro.deSandro 🐧maybe we didn't in the past15:09:15
@nzbr:nzbr.deArson Copperflame
In reply to @k900:0upti.me
I'm honestly not too sure how the installer tarballs work, I just have the config integrated in my flake
It just does a fancy tar xz of the rootfs
15:17:50
@nzbr:nzbr.deArson CopperflamenoXLibs has been removed some time after WSLg released15:18:24
17 Jan 2023
@ecmacat:matrix.orgecmacatI guess the documentation for NixOS-WSL is not quite complete?11:42:23
@k900:0upti.meK900What exactly are you missing?11:42:43
@ecmacat:matrix.orgecmacat For example, there's no explanation on the use of docker-native and docker-desktop 11:42:46
@ecmacat:matrix.orgecmacat What's the difference between using docker-native and virtualisation.docker.enable 11:43:10
@nzbr:nzbr.deArson Copperflame docker-native is a wrapper around virtualisation.docker.enable that uses a patched docker derivation, because the original one will not work under WSL 11:44:04
@nzbr:nzbr.deArson Copperflame docker-desktop tries to set up a connection to Docker Desktop running on the Windows host, but it's a little flakey unfortunately 11:45:54
@ecmacat:matrix.orgecmacatthanks for your information11:46:41
@ecmacat:matrix.orgecmacatThe issue that docker-native tried to fix seems to be related to iptables?11:47:04
@nzbr:nzbr.deArson Copperflame Yes, it needs to be compiled against iptables-legacy instead of the default iptables 11:47:52
@ecmacat:matrix.orgecmacatthanks11:49:06
@ecmacat:matrix.orgecmacat

Another problem related to systemd: I tried to upgrade to nixos-unstable, and several units failed:

● systemd-sysctl.service             loaded failed failed Apply Kernel Variables
● systemd-tmpfiles-setup-dev.service loaded failed failed Create Static Device Nodes in /dev
● systemd-tmpfiles-setup.service     loaded failed failed Create Volatile Files and Directories
11:52:47
@ecmacat:matrix.orgecmacatThey are not needed in wsl anyway, so why aren't they masked?11:53:13
@ecmacat:matrix.orgecmacat *

Another problem is related to systemd: I tried to upgrade to nixos-unstable, and several units failed:

● systemd-sysctl.service             loaded failed failed Apply Kernel Variables
● systemd-tmpfiles-setup-dev.service loaded failed failed Create Static Device Nodes in /dev
● systemd-tmpfiles-setup.service     loaded failed failed Create Volatile Files and Directories
11:53:26
@nzbr:nzbr.deArson CopperflameDo those fail on 22.11 as well?11:53:45
@ecmacat:matrix.orgecmacatthey don't11:54:01
@ecmacat:matrix.orgecmacat
Failed to set up credentials: Protocol error
Failed at step CREDENTIALS spawning /nix/store/cgjjaqvxpq1z1a9bnxjvszjzvm93razf-systemd-252.4/lib/systemd/systemd-sysctl: Protocol error
11:54:42
@k900:0upti.meK900Known issue with latest systemds11:55:58
@nzbr:nzbr.deArson Copperflame
In reply to @ecmacat:matrix.org
Failed to set up credentials: Protocol error
Failed at step CREDENTIALS spawning /nix/store/cgjjaqvxpq1z1a9bnxjvszjzvm93razf-systemd-252.4/lib/systemd/systemd-sysctl: Protocol error
https://github.com/nix-community/NixOS-WSL/issues/185
11:56:26
@k900:0upti.meK900Just use native systemd11:57:30
@k900:0upti.meK900Native systemd is considerably less broken 11:57:50
@ecmacat:matrix.orgecmacatThanks, this resolved my issue. (for those who wanna try this: after enabling nativeSystemd a full restart of wsl is required)12:04:35
@ecmacat:matrix.orgecmacatBefore the native systemd thing, did we just use the systemd provided by WSL?12:05:03
@k900:0upti.meK900No 12:05:11

Show newer messages


Back to Room ListRoom Version: 9