Hello everybody, I'm trying to define a guix home environment that
mirrors the current envornment I'm using on my laptop.

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.

Here the current config (for now I'm just trying to get the packages
in order and I'm using bash as the shell):
--------------------->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-bash-service-type
                     (home-bash-configuration
                      (guix-defaults? #t)
                      (variables
                       `(("HISTFILE" . "$XDG_CACHE_HOME/.bash_history")
                         ("HISTSIZE" . "50000")))))

            (simple-service 'test-config
                            home-xdg-configuration-files-service-type
                            (list `("test.conf"
                                    ,(plain-file "tmp-file.txt"
                                                 "the content of
                                          ~/.config/test.conf")))))
           %base-home-services)))
--------------------------8<-------------------------------------

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.

PS: I'm using `guix home container home.scm` to test things, I don't
know if it's important


Mario Calcagno

Reply via email to