On Mon, 25 Oct 2021 02:05:31 +0300 Oleg Pykhalov <[email protected]> wrote:
> Hi,
>
> jgart <[email protected]> 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)
...))