[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nnn-service-type for guix home
From: |
jgart |
Subject: |
Re: nnn-service-type for guix home |
Date: |
Sun, 24 Oct 2021 19:41:28 -0400 |
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)
...))