!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

351 Members
https://github.com/nix-community/NixOS-WSL63 Servers

Load older messages


SenderMessageTime
2 Feb 2023
@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
@k900:0upti.meK900 And then run nixos-rebuild with sudo 20:00:38
@i97henka:matrix.orghenrik-ch Thank you for chatting back K900 🙏. Are you thinking of system.stateVersion = "22.05";, or more like downloading a new tar.gz? 20:02:15
@k900:0upti.meK900 Never touch stateVersion 20:02:22
@k900:0upti.meK900Did you use the official tarball from the NixOS-WSL github page?20:02:51
@i97henka:matrix.orghenrik-chI think so, but just to make sure, I will start afresh, it's a quick thing to do.20:03:13
@k900:0upti.meK900Which tarball version did you use? The 22.05 one from releases?20:04:20

Show newer messages


Back to Room ListRoom Version: 9