!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

282 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
7 Jul 2024
@andreas_dev:matrix.organdreas_devBut this means I'm unable to perform a rebuild08:29:54
@andreas_dev:matrix.organdreas_devBecause I need git08:29:57
@andreas_dev:matrix.organdreas_devAnd nix shell fails because I don't have bash08:30:07
@k900:0upti.meK900 You can use path:///home/user/config 08:31:38
@k900:0upti.meK900To avoid the git invocation08:31:41
@andreas_dev:matrix.organdreas_devInteresting, I didn't know that was a thing08:32:52
@andreas_dev:matrix.organdreas_devThank you08:32:54
@andreas_dev:matrix.organdreas_devhttps://pastebin.com/xvmXmUnj Another issue.. do you know how to solve this one?08:45:46
@k900:0upti.meK900Hmm, that shouldn't be happening08:52:22
@k900:0upti.meK900Unless you have some weird custom activation script08:52:28
@andreas_dev:matrix.organdreas_devI think that's caused by the recovery shell too, since PID 1 is bash there08:52:30
@k900:0upti.meK900That is normla08:52:51
@k900:0upti.meK900 * That is normal08:52:52
@k900:0upti.meK900What is not normal is the activation script trying to talk to systemd08:52:58
@k900:0upti.meK900And failing08:53:00
@andreas_dev:matrix.organdreas_devAh, that might be my nix-channel workaround. I use systemd temp files there to set nixPath08:55:50
@andreas_dev:matrix.organdreas_devHm, still happens when I remove that.09:00:02
@k900:0upti.meK900I wonder if it's actually activating09:01:02
@k900:0upti.meK900Just also printing that message09:01:07
@andreas_dev:matrix.organdreas_devhttps://pastebin.com/bbVu81WZ This is my config, for reference09:02:13
@k900:0upti.meK900Wait09:02:31
@k900:0upti.meK900Are you importing the WSL modules anywhere?09:02:36
@andreas_dev:matrix.organdreas_devYes, in my flake09:03:25
@andreas_dev:matrix.organdreas_devhost = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs outputs;}; modules = [ inputs.nixos-wsl.nixosModules.wsl ./etc/nixos/nixos-modules/upkgs.nix ./etc/nixos/nixos-modules/nh.nix ./etc/nixos/nixos-modules/flake-programs-sqlite.nix ./etc/nixos/hosts/ldhnieuwegein/ldhnieuwegein_configuration.nix ]; };09:06:59
@andreas_dev:matrix.organdreas_devMaybe I use systemd in one of those modules09:07:27
@andreas_dev:matrix.organdreas_devLet me check09:07:32
@andreas_dev:matrix.organdreas_devNope, that's not it.09:09:22
@dminca:matrix.orgdminca joined the room.09:38:23
@nzbr:nzbr.denzbr (they/it) nixos-rebuild boot should not even run the activation scripts, so I doubt that it's related to that. Which makes the fact that it tries to talk to systemd extra weird
Also the recovery shell just runs nixos-enter, so everything from your regular environment should be available. But given that you are using the recovery shell in the first place I'll assume that something is broken with that. Have you already tried to roll back to the previous generation?
18:10:37
8 Jul 2024
@fastloris:tchncs.de@fastloris:tchncs.de joined the room.00:48:28

Show newer messages


Back to Room ListRoom Version: 9