summaryrefslogtreecommitdiffstats
path: root/home.scm
blob: 63dd2589dc8bc4a4e81025f1cd453e5a58990876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
(define-module (guix-home-config)
  #:use-module (gnu home)
  #:use-module (gnu home services)
  #:use-module (gnu home services shells)
  #:use-module (gnu services)
  #:use-module (gnu system shadow)
  #:use-module (gnu packages)
  #:use-module (nongnu packages mozilla)
  #:use-module (guix gexp))

(define home-config
  (home-environment
    (packages
      (specifications->packages
        (list "btop"
              "firefox"
              "gtk+:bin"
              "hicolor-icon-theme"
              "git"
              "python"
              "binutils"
              "flatpak"
	      "fastfetch")))
    (services
      (append
        (list
          (service home-zsh-service-type)

          (simple-service
            'flatpak-environment
            home-environment-variables-service-type
            `(("XDG_DATA_DIRS"
               . "$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:$HOME/.guix-home/profile/share:$XDG_DATA_DIRS")))

          (service home-files-service-type
            `((".config/plasma-workspace/env/flatpak.sh"
               ,(plain-file
                  "flatpak.sh"
                  "export XDG_DATA_DIRS=\"$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:${XDG_DATA_DIRS:-}\"\n"))))

          (service home-xdg-configuration-files-service-type
            `(("gdb/gdbinit" ,%default-gdbinit)
              ("nano/nanorc" ,%default-nanorc))))
        %base-home-services))))

home-config