6 Sep 2024 |
common16 | Hey everyone. Does anyone have an example handy of how I can configure git to use my /mnt/c/.../git-credentials-manager.exe and /mnt/c/Users/common/.gitconfig in my flake.nix that way they're auto-set when I start WSL? | 15:30:08 |
rosssmyth | for the latter can probably use $GIT_CONFIG_SYSTEM in your shell startup config | 15:35:09 |
rosssmyth | It will be slower but may be acceptable for you | 15:35:24 |
common16 | Is it faster to copy it into WSL instead (if possible)? | 15:36:08 |
rosssmyth | Yeah. tbh in my experience I don't notice too much of slow down accessing the host filesystem, I work in Windows directories all the time. Try it out and see is what I would do. | 15:36:58 |
rosssmyth | * Yeah. tbh in my experience I don't notice too much of slow down accessing the host filesystem, I work in and compile things in Windows directories all the time. Try it out and see is what I would do. | 15:37:12 |
common16 | I'm still very new to NixOS. Would you be able to help me add that into my flake.nix? http://pastie.org/p/6iQbsvLMpkdYEiiWqLGDh1 | 15:37:57 |
rosssmyth | If you can put it on a site with working HTTPS/TLS then yes. But the gist is to do something like
programs.fish.shellInit = ''
set -gx GIT_CONFIG_SYSTEM /some/path
''
| 15:42:42 |
rosssmyth | * If you can put it on a site with working HTTPS/TLS then yes. But the gist is to do something like
programs.fish.shellInit = ''
set -gx GIT_CONFIG_SYSTEM /some/path
'';
| 15:43:12 |
rosssmyth | * If you can put it on a site with working HTTPS/TLS then yes. But the gist is to do something like
programs.fish.shellInit = ''
set -gx GIT_CONFIG_SYSTEM /some/path
'';
Or the equivalent for the shell you use
| 15:43:26 |
common16 | Ah let me try that. | 15:45:18 |
common16 | I think that did the trick. Thanks! | 15:52:31 |
9 Sep 2024 |
| declension joined the room. | 16:04:09 |
common16 | Redacted or Malformed Event | 22:42:47 |
10 Sep 2024 |
K900 | Are you actually running an SSH agent? | 04:30:03 |
common16 | 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 | And also set my SSH_AUTH_SOCK env var (all within my programs.fish.shellInit) | 05:22:12 |
K900 | Set SSHAUTHSOCK to what though? | 05:22:21 |
K900 | Set SSH_AUTH_SOCK to what though? | 05:22:24 |
common16 | set -l latest_socket (ls -t /tmp/ssh-/agent. | head -n 1) set -gx SSH_AUTH_SOCK $latest_socket | 05:23:15 |
K900 | That means something is spawning an ssh-agent | 05:23:24 |
K900 | Because that file should not exist if there's no SSH agent running | 05:23:35 |
K900 | So you should figure out what is actually spawning it | 05:23:42 |
common16 | Hm... I'm not sure how to find out where since I've been doing everything from this flake file | 05:23:52 |
K900 | Well you could start by checking htop | 05:25:44 |
K900 | And seeing if there are any ssh-agent processes | 05:25:55 |
K900 | And what their parent process is | 05:25:58 |
common16 | When I look for ssh I can see:
ssh-aggent /nix/store/78mv13w9mgh0 nixos | 05:26:24 |
common16 | Something in my userspace(?) created it it seems like | 05:26:39 |
K900 | Switch to a tree view and look at what its parent process is | 05:26:46 |