[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Privoxy user config without hard-coded GNU store path?
From: |
Pierre Neidhardt |
Subject: |
Re: Privoxy user config without hard-coded GNU store path? |
Date: |
Sun, 06 Oct 2019 14:46:49 +0200 |
Hi Efraim!
Thanks for the suggestions!
> The simple solution here is to change the lines to
> confdir /home/USER/.guix-profile/etc/privoxy
> logdir /home/USER/log/privoxy
Duh, that was easy! :p
> If you want an untested user shepherd service, here's one I've come up
> with on the spot:
>
> (define privoxy
> (make <service>
> #:provides '(privoxy)
> #:docstring "Privoxy filters outgoing internet connections"
> #:start (make-forkexec-constructor
> '("/var/guix/profiles/per-user/USER/current-guix/bin/privoxy"
> "--no-daemon" "/home/USER/.config/privoxy/config")
> #:log-file "/home/USER/log/privoxy/privoxy.log")
> #:stop (make-kill-destructor)
> #:respawn? #t))
> (register-services privoxy)
That's a good starting point, but furthermore what I meant was a service
in which we declare the configuration file, so that I don't need to
provide my own "config".
I guess that'd be another neat service to add to Shepherd/Guix ;)
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature