;; This is a sample Guix Home configuration which can help setup your
;; home directory in the same declarative manner as Guix System.
;; For more information, see the Home Configuration section of the manual.

;; Add our guix-local channel to the guix load path
(add-to-load-path (string-append
                   (dirname (current-filename))
                   file-name-separator-string
                   "guix-local"))

(define-module (home-configuration)
  #:use-module (gnu home)
  #:use-module (gnu home services)
  #:use-module (gnu home services shells)
  #:use-module (gnu packages certs)
  #:use-module (gnu packages emacs)
  #:use-module (gnu packages version-control)
  #:use-module (gnu packages ssh)
  #:use-module (gnu packages tmux)
  #:use-module (gnu services)
  #:use-module (gnu system shadow)
  #:use-module (zb packages pijul))

(define home-configuration
  (home-environment
    (packages (list nss-certs
                    git
                    emacs-next
                    openssh
                    tmux
                    pijul))
    (services
      (list
        ;; Uncomment the shell you wish to use for your user:
        (service home-bash-service-type
                 (home-bash-configuration
                   (environment-variables '(("SSL_CERT_DIR" . "$HOME/.guix-home/profile/etc/ssl/certs")
                                            ("SSL_CERT_FILE" . "$HOME/.guix-home/profile/etc/ssl/certs/ca-certificates.crt")
                                            ("GIT_SSL_CAINFO" . "$SSL_CERT_FILE")))))))))

home-configuration