~ruther/guix-config

ref: 5beb9d545b53c65f0b17fee7ea6f6d52e92d3514 guix-config/home/home-configuration.scm -rw-r--r-- 8.2 KiB
5beb9d54 — Rutherther feat: add liquid prompt 7 months ago
                                                                                
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
;; This "home-environment" file can be passed to 'guix home reconfigure'
;; to reproduce the content of your profile.  This is "symbolic": it only
;; specifies package names.  To reproduce the exact same profile, you also
;; need to capture the channels being used, as returned by "guix describe".
;; See the "Replicating Guix" section in the manual.

(use-modules (guix packages)
             (guix gexp)
             (gnu home)
             (gnu packages)
             (gnu packages gnupg)
             (gnu packages shellutils)
             (gnu services)
             (gnu home services fontutils)
             (gnu home services desktop)
             (gnu home services shells)
             (gnu home services gnupg)
             (gnu home services sound)
             (gnu home services xdg)
             (gnu home services)
             (ruther home dwl wm)
             (ruther home dwl scripts)
             (ruther home themes)
             (ruther home services gtk))

(home-environment
 ;; Below is the list of packages that will show up in your
 ;; Home profile, under ~/.guix-home/profile.
 (packages
  (append
   (list
    dwl-mine)
   (specifications->packages
    (list
     ;; HW interactions
     "blueman" "pavucontrol"
     "network-manager-applet"

     ;; Terminals, utilities
     "foot" "fbset"

     ;; Shell utilities
     "ripgrep-all" "ripgrep"
     "fd" "fzf"
     "direnv"

     ;; Fonts
     "font-hack" "font-dejavu"
     "font-ubuntu"
     "font-awesome" "font-google-noto-emoji"

     ;; Browsing
     "librewolf"
     "firefox" ;; No netflix in librewolf :'(

     ;; Development
     "git" "openssh"

     ;; Passwords
     "gnupg" "password-store-wl" "pass-otp"

     ;; DBus services
     "mako"

     ;; Notebook stuff
     "acpi" "xbacklight"
     "brillo"

     ;; Images, Videos
     "mpv" "nsxiv" "zathura"
     "evince"

     ;; Editing
     "emacs" "emacs-vterm"
     "neovim"))))

  ;; Below is the list of Home services.  To search for available
  ;; services, run 'guix home search KEYWORD' in a terminal.
  (services
   (list (service home-bash-service-type
                  (home-bash-configuration
                   (guix-defaults? #t)
                   (aliases '(("grep" . "grep --color=auto")
                              ("ip" . "ip -color=auto")
                              ("ll" . "ls -l")
                              ("ls" . "ls -p --color=auto")))
                   (bashrc (list (local-file "dotfiles/.bashrc" "bashrc")))
                   (bash-profile (list (local-file "dotfiles/.bash_profile"
                                                   "bash_profile")))))

         (service home-gtk-service-type
                  (let ((gtk-theme (make-graphite-gtk-theme #:theme "orange" #:color "dark"))
                        (icon-theme (make-tela-circle-icon-theme #:variant "orange"))
                        (cursor-theme (make-catppuccin-cursors #:flavor "frappe" #:accent "sapphire")))
                    (home-gtk-configuration
                     (gtk-theme
                      (gtk-theme-configuration
                       (package gtk-theme)
                       (name (assoc-ref (package-properties gtk-theme) 'theme-name))))
                     (cursor-theme
                      (gtk-theme-configuration
                       (package cursor-theme)
                       (name (assoc-ref (package-properties cursor-theme) 'cursor-theme-name))
                       (size 16)))
                     (icon-theme
                      (gtk-theme-configuration
                       (package icon-theme)
                       (name (assoc-ref (package-properties icon-theme) 'dark-icon-theme-name))))
                     (font-name "Ubuntu 10"))))

         (service home-zsh-service-type
                  (home-zsh-configuration
                   (zshrc (list
                           (local-file "dotfiles/.zshrc" "zshrc")))))

         (service home-files-service-type
                  `((".config/foot/foot.ini" ,(local-file "dotfiles/foot.ini"))
                    (".config/waybar/config.jsonc" ,(local-file "dotfiles/waybar/config.jsonc"))
                    (".config/waybar/style.css" ,(local-file "dotfiles/waybar/style.css"))
                    (".config/mako/config" ,(local-file "dotfiles/mako"))

                    ;; TODO the services should be started by shepherd
                    (".start-dwl" ,(start-dwl #:dwl dwl-mine #:waybar waybar-mine))

                    (".config/dwl/scripts/print.sh" ,(local-file "dotfiles/dwl/print.sh"))

                    (".config/zsh/direnv/direnv" ,direnv)
                    (".config/zsh/plugins" ,#~(string-append #$(directory-union
                                                                "zsh-plugins"
                                                                (list zsh-autosuggestions zsh-syntax-highlighting
                                                                      liquidprompt))
                                                             "/share/zsh/plugins"))

                    (".librewolf/native-messaging-hosts/com.github.browserpass.native.json"
                     ,(file-append
                       (specification->package "browserpass-native")
                       "/lib/browserpass/hosts/firefox/com.github.browserpass.native.json"))))

         (simple-service 'default-fonts
                         home-fontconfig-service-type
                         (list
                          '(alias
                            (family "monospace")
                            (prefer (family "Ubuntu Mono")))
                          '(alias
                            (family "sansSerif")
                            (prefer (family "Ubuntu")))
                          '(alias
                            (family "serif")
                            (prefer (family "Ubuntu")))))

         (service home-xdg-user-directories-service-type
                  (home-xdg-user-directories-configuration
                   (desktop "$HOME/desktop")
                   (documents "$HOME/doc")
                   (download "$HOME/download")
                   (music "$HOME/music")
                   (pictures "$HOME/pictures")
                   (publicshare "$HOME/public")
                   (templates "$HOME/templates")
                   (videos "$HOME/videos")))

         (service home-xdg-mime-applications-service-type
                  (home-xdg-mime-applications-configuration
                   (default
                     '(("application/mp4" . "mpv.desktop")
                       ("application/pdf" . "org.pwmt.zathura.desktop")
                       ("image/gif" . "nsxiv.desktop")
                       ("image/jpeg" . "nsxiv.desktop")
                       ("image/png" . "nsxiv.desktop")
                       ("image/tiff" . "nsxiv.desktop")
                       ("image/webp" . "nsxiv.desktop")

                       ("application/x-shellscript" . "emacsclient.desktop")
                       ("text/javascript" . "emacsclient.desktop")
                       ("text/markdown" . "emacsclient.desktop")
                       ("text/plain" . "emacsclient.desktop")
                       ("text/x-python3" . "emacsclient.desktop")

                       ("video/h264" . "mpv.desktop")
                       ("video/h265" . "mpv.desktop")
                       ("video/h266" . "mpv.desktop")
                       ("video/mpeg" . "mpv.desktop")

                       ("text/html" . "librewolf.desktop")
                       ("x-scheme-handler/about" . "librewolf.desktop")
                       ("x-scheme-handler/chrome" . "librewolf.desktop")
                       ("x-scheme-handler/file" . "emacsclient.desktop")
                       ("x-scheme-handler/http" . "librewolf.desktop")
                       ("x-scheme-handler/https" . "librewolf.desktop")
                       ("x-scheme-handler/unknown" . "librewolf.desktop")))))

         (service home-gpg-agent-service-type
                  (home-gpg-agent-configuration
                   (pinentry-program
                    (file-append pinentry-gtk2 "/bin/pinentry-gtk-2"))))
         (service home-pipewire-service-type)
         (service home-dbus-service-type))))

;; dwl package the scripts for starting, make them in Guile

;; xdg desktop portal, wlr
Do not follow this link