From: jgart <jgart@dismail.de>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: nnn-service-type for guix home
Date: Sun, 24 Oct 2021 19:41:28 -0400 [thread overview]
Message-ID: <20211024194128.GC17236@gac.attlocal.net> (raw)
In-Reply-To: <87o87eja6c.fsf@gmail.com>
On Mon, 25 Oct 2021 02:05:31 +0300 Oleg Pykhalov <go.wigust@gmail.com> wrote:
> Hi,
>
> jgart <jgart@dismail.de> writes:
>
> > Does it make sense to add nnn's configuration to the bash-service-type
> > or to create a new service altogether?
> >
> > nnn is configured by setting environment variables:
> >
> > https://github.com/jarun/nnn/wiki/Usage#configuration
>
> For environment variables I think the best way is extending
> 'home-environment-variables-service-type' [1]. This approach could
> configure nnn for not only for Bash, but e.g. Zsh.
>
> [1] https://guix.gnu.org/en/manual/devel/en/html_node/Essential-Home-Services.html
Ah, thanks.
So, something like this?
(simple-service 'nnn-service-type
home-environment-variables-service-type
`(("NNN_BMS" . "d:$HOME/Documents;D:$HOME/Docs archive/")
("NNN_SSHFS" . ,(string-append sshfs "-o reconnect,idmap=user")) ; reference sshfs from store somehow
("NO_COLOR" . 1)
...))
next prev parent reply other threads:[~2021-10-24 23:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-24 22:37 nnn-service-type for guix home jgart
2021-10-24 23:05 ` Oleg Pykhalov
2021-10-24 23:41 ` jgart [this message]
2021-10-25 11:34 ` Oleg Pykhalov
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=20211024194128.GC17236@gac.attlocal.net \
--to=jgart@dismail.de \
--cc=go.wigust@gmail.com \
--cc=guix-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).