unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: TakeV <takev@disroot.org>
To: help-guix@gnu.org
Subject: Using git-annex with tor on guix system
Date: Fri, 12 Jan 2024 12:58:50 -0500	[thread overview]
Message-ID: <3274a527-6e9d-6da4-1006-d46b1783ae67@disroot.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2651 bytes --]

Hi there!

I am trying to get git-annex working with tor on my guix system install. 
I had been following this guide, but using the guix equivalents in my 
system config: https://git-annex.branchable.com/tips/enable_tor_on_nixos/

The command itself (i.e. "sudo git annex enable-tor $(id -u)") seems to 
fail due to trying to call systemd, yet it is able to update the torrc 
(I had to manually create the initial /etc/tor/torrc for it to update, 
however).

The resulting torrc is:

HiddenServiceDir 
/var/lib/tor/tor-annex_1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4
HiddenServicePort 24166 
unix:/var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4/s

I then updated my system config with the generated data from running the 
command (Other onion sites have been removed from this code):

(service tor-service-type
                     (tor-configuration
                      (hidden-services
                       (list (tor-onion-service-configuration
                              (name 
"tor-annex_1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4")
                              (mapping '((24166 . 
"unix:/var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4/s"))))))
                      (socks-socket-type 'unix)
                      (control-socket? #t)))


When I attempt to build it though, I am getting:

building /gnu/store/d84j0m7shr73qii9sdmvg62xbbj4j4ij-torrc.drv...
Backtrace:
            4 (primitive-load "/gnu/store/c3nm27il4snwbmm5l2bfzgriw8g?")
In ice-9/ports.scm:
    433:17  3 (call-with-output-file _ _ #:binary _ #:encoding _)
In ice-9/eval.scm:
     619:8  2 (_ #(#(#<directory (guile-user) 7ffff77f7c80>) #<outp?>))
In ice-9/boot-9.scm:
    260:13  1 (for-each #<procedure 7ffff0f09240 at ice-9/eval.scm:3?> ?)
In ice-9/eval.scm:
     619:8  0 (_ #(#(#<directory (guile-user) 7ffff77f7c80> ("t?" ?))))

ice-9/eval.scm:619:8: Throw to key `match-error' with args `("match" "no 
matching pattern" ("tor-annex_1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4" 
(24166 . 
"unix:/var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4/s")))'.


Having a very difficult time figuring out what is going on here. I am 
not seeing the socket file in 
/var/lib/tor-annex/1001_54d5b4b2-7325-43f9-b1be-1c1e8481eca4, could it 
be erroring there? Or does it not work with socket mappings? Has anyone 
been able to get git-annex's tor functionality working on a guix system?


Thanks!


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]

                 reply	other threads:[~2024-01-12 17:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3274a527-6e9d-6da4-1006-d46b1783ae67@disroot.org \
    --to=takev@disroot.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).