!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

345 Members
https://github.com/nix-community/NixOS-WSL61 Servers

Load older messages


SenderMessageTime
2 Feb 2023
@nzbr:nzbr.deArson Copperflame And we'd just upload the sources, not the installer tarball 12:34:24
@k900:0upti.meK900I've merged the Rust path thing12:36:34
@k900:0upti.meK900After testing it on like five machines12:36:41
@sandro:supersandro.deSandro 🐧https://github.com/microsoft/WSL/releases/tag/1.1.216:34:06
@k900:0upti.meK900Do we explode16:34:51
@k900:0upti.meK900Just updated, we don't16:36:26
@k900:0upti.meK900Nice16:36:27
5 Feb 2023
@sandro:supersandro.deSandro 🐧https://social.arkane-systems.net/@cerebrate/10980765781821046319:05:47
@k900:0upti.meK900Wait what 19:07:27
@k900:0upti.meK900What are the WSL bits even doing running stuff from /run/current-system19:07:50
@k900:0upti.meK900They shouldn't be anywhere close to that 19:08:02
@nzbr:nzbr.deArson CopperflameI think it tries to do that because that's set as the defaut user's shell19:20:09
@k900:0upti.meK900But it shouldn't be starting the shell until systemd is alive19:20:47
@nzbr:nzbr.deArson Copperflamehttps://github.com/microsoft/WSL/issues/888619:21:03
@nzbr:nzbr.deArson CopperflameThat's exactly the bug linked there19:21:19
@k900:0upti.meK900Unless their system is so slow it can't activate and spawn a systemd in however long WSL takes to give up on waiting for systemd to be ready19:21:26
@k900:0upti.meK900I am pretty sure that got fixed though19:21:52
@k900:0upti.meK900 It should be probing systemctl is-system-running 19:22:11
9 Feb 2023
@k900:0upti.meK900https://doc.rust-lang.org/std/env/fn.split_paths.html21:59:08
@k900:0upti.meK900Oof21:59:09
@k900:0upti.meK900I just randomly stumbled upon this in a completely unrelated codebase21:59:24
@k900:0upti.meK900Now I need to fix the shim21:59:39
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/pull/219/files22:41:05
@k900:0upti.meK900Started fixing the shim22:41:08
@k900:0upti.meK900Don't merge until I get tests running in CI though22:41:23
10 Feb 2023
@hexagony:mozilla.orghexagony joined the room.02:05:29
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/pull/219 should be good to review now07:26:05
11 Feb 2023
@k900:0upti.meK900I merged 219 because I found a setup where the old one actually breaks14:40:17
12 Feb 2023
@i97henka:matrix.orghenrik-ch

I am very new to nixos, nixos wsl, and also to this channel. I hope that it's okay to post here to ask for your advice.
I added this snippet to my /etc/nixos/configuration.nix

environment.systemPackages = with pkgs; [
    emacs
  ];

(I put it under the experimental features flakes bit)

When I ran nixos-rebuild switch afterwards I get this error message:

building '/nix/store/51a2g3iffr4cv3wzh1k9g69231ldv8gj-etc.drv'...
building '/nix/store/p4c000pm7qzlmn2a72gnxfrkdvccdlbz-nixos-system-nixos-22.05.20220812.5c211b4.drv'...
error: creating symlink from '/nix/var/nix/profiles/system-2-link.tmp-6530-1022011929' to '/nix/store/wpirs5md50yzp3qws0chzpqr5s3jzfaf-nixos-system-nixos-22.05.20220812.5c211b4': Permission denied

then I try sudo nixos-rebuild switch and still get an error.

reloading user units for nixos...
setting up tmpfiles
fchmod() of /tmp/.X11-unix failed: Read-only file system
reloading the following units: dbus.service

Any pointers to what might be best next steps or things to check would be greatly appreciated!

19:59:08
@k900:0upti.meK900You should probably update your nixos-wsl version20:00:20

Show newer messages


Back to Room ListRoom Version: 9