> Hello,
> 
> Mario Calcagno [email protected] skribis:
> 
> > I'm having some problem understanding services and how to define them,
> > in particular I can't seem to understand to setup zsh as the login
> > shell and the manual is not helping.
> 
> 
> Just like you have ‘home-bash-service-type’, you would add (probably in
> place of ‘home-bash-service-type’) something like:
> 
> (service home-zsh-service-type)
> 
> or, if you have custom config:
> 
> (service home-zsh-service-type
> (home-zsh-configuration
> (environment-variables '(("FORTYTWO" . "42")))))
> 
> Note that you still need to arrange so that you user shell is zsh, for
> instance by invoking ‘chsh’: that part is not up to Guix Home.

Zsh is already my login shell and I tried both:
-------------------------------8<-----------------------------
(service home-zsh-service-type)
------------------------------>8------------------------------
and 

-------------------------------8<-----------------------------
(service home-zsh-service-type
  (home-zsh-configuration
    (environment-variables '(("PROVA" . "Ciao, guix"))))
----------------------------->8------------------------------
and in both cases I have a non functional shell:
- the packages that should be part of the profile aren't accessible
- for some reason I can't use backspace to delete characters
- and I get this error: "/home/mario/.config/zsh/.zprofile:source:2: no
  such file or directory: /etc/profile"
but if I use "home-bash-service-type" and prepend SHELL=/bin/bash to
the guix home command, "guix home container home.scm", everything
works as intended.

This are the content of home.scm

-----------------------------------8<----------------------------------------------
(use-modules (gnu home)
             (gnu home services)
             (gnu home services shells)
             (gnu services)
             (gnu packages admin)
             (gnu packages base)             
             (gnu packages perl)
             (gnu packages perl6)            
             (gnu packages lisp)
             (gnu packages mpd)
             (guix gexp))


(home-environment
 (packages (list htop
                 perl
                 sbcl
                 rakudo
                 mpd
                 mpd-mpc
                 coreutils
                 binutils))
 (services
  (append (list
           (service home-zsh-service-type))
          %base-home-services)))
-------------------------------->8------------------------------------------------
Honestly I willing to go back to bash for my login shell, but I want to
be sure to try everything before giving up

> > Another thing that I wanted to ask was if I should put sway in the
> > home-environment or leave it to the host distro's package manager.
> 
> 
> That I don’t know.
> 
> > PS: I'm using `guix home container home.scm` to test things, I don't
> > know if it's important
> 
> 
> It’s a good idea to do that, it helps check if everything would work as
> intended.
> 
> HTH!
> 
> Ludo’.

Mario

Reply via email to