Skip to content

Commit

Permalink
fix: hotfix for gnome ssh daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
Suya1671 committed May 22, 2024
1 parent 7fc8e2a commit b0ab9e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions users/modules/nushell/config/config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ $env.config.completions.external = {

let cachixExists = ("/etc/cachix-agent.token" | path exists)

$env.SSH_AUTH_SOCK = /run/user/1000/keyring/ssh

if $cachixExists {
open /etc/cachix-agent.token | lines | parse "{name}={value}" | reduce -f {} { |it, acc| $acc | upsert $it.name $it.value } | load-env
}

0 comments on commit b0ab9e0

Please sign in to comment.