!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
6 Sep 2024
@common16:matrix.orgcommon16I think that did the trick. Thanks!15:52:31
9 Sep 2024
@declension:matrix.org@declension:matrix.org joined the room.16:04:09
@common16:matrix.orgcommon16Redacted or Malformed Event22:42:47
10 Sep 2024
@k900:0upti.meK900Are you actually running an SSH agent?04:30:03
@common16:matrix.orgcommon16 I was but I wasn't able to get it working well with that approach. With my current approach I'm able to share the ssh from my host by deleting all of /home/nixos/.ssh/ and then copying my C:\Users\host.ssh\ into /home/nixos/.ssh/ 05:19:13
@common16:matrix.orgcommon16And also set my SSH_AUTH_SOCK env var (all within my programs.fish.shellInit)05:22:12
@k900:0upti.meK900 Set SSHAUTHSOCK to what though? 05:22:21
@k900:0upti.meK900 Set SSH_AUTH_SOCK to what though? 05:22:24
@common16:matrix.orgcommon16 set -l latest_socket (ls -t /tmp/ssh-/agent. | head -n 1)
set -gx SSH_AUTH_SOCK $latest_socket
05:23:15
@k900:0upti.meK900That means something is spawning an ssh-agent05:23:24
@k900:0upti.meK900Because that file should not exist if there's no SSH agent running05:23:35
@k900:0upti.meK900So you should figure out what is actually spawning it05:23:42
@common16:matrix.orgcommon16Hm... I'm not sure how to find out where since I've been doing everything from this flake file05:23:52
@k900:0upti.meK900Well you could start by checking htop05:25:44
@k900:0upti.meK900And seeing if there are any ssh-agent processes05:25:55
@k900:0upti.meK900And what their parent process is05:25:58
@common16:matrix.orgcommon16When I look for ssh I can see: ssh-aggent /nix/store/78mv13w9mgh0 nixos05:26:24
@common16:matrix.orgcommon16Something in my userspace(?) created it it seems like05:26:39
@k900:0upti.meK900Switch to a tree view and look at what its parent process is05:26:46
@common16:matrix.orgcommon16I'm seeing it under /init and the /nix/store also has -openssh-9.7p1/bin/ssh-agent05:28:18
@k900:0upti.meK900So something has spawned it and exited, presumably05:28:32
@k900:0upti.meK900Do you have any other references to ssh-agent in your shell config?05:28:49
@common16:matrix.orgcommon16Nope that's the only one05:29:15
@k900:0upti.meK900I wonder if it's some git for windows thing or something05:29:43
@common16:matrix.orgcommon16That's what I'm kinda wondering (if it's a part of the WSL "magic" / package)05:31:05
@k900:0upti.meK900Definitely not WSL05:31:29
@common16:matrix.orgcommon16Ya I'm not sure. This is what my flake.nix currently looks like: http://pastie.org/p/2V3Z4qaIkpK0DxRJqtVpfU05:36:32
@simonyde:matrix.orgSimon Yde
In reply to @k900:0upti.me
^ do this
Hi. currently I find that my WSL system won't build at all, it when I try to rebuild either home-manager or my system config it results in an infinite loop. I tried following this step but it doesn't seem to have an effect
09:32:37
@k900:0upti.meK900What do you mean by "infinite loop" exactly?09:34:30
@simonyde:matrix.orgSimon Yde like the build never finishes. Normally i use nh to interact with nix, but doing sudo nixos-rebuild switch --flake . doesn't work either, just never progresses 09:37:36

Show newer messages


Back to Room ListRoom Version: 9