summaryrefslogtreecommitdiff
path: root/home-config/home-configuration.scm
blob: 639c736ce83c8cb48a1688444785ae7a1f1b7d83 (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
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
;; 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 (gnu home)
             (gnu packages)
             (gnu packages vim)
             (gnu packages gcc)
             (gnu packages gnupg)
             (gnu services)
             (guix packages)
             (guix gexp)
             (gnu home services shells)
             (gnu home services desktop)
             (gnu home services gnupg)
             (gnu home services fontutils)
             (gnu home services)
             (ryan-services pipewire)
             (ryan-services spotify)
             (ryan-services file-manager)
             (ryan-config utils)
             (ryan-packages freedesktop)
             (ryan-packages calcurse)
             ;(ryan-packages binaries)
             (rosenthal packages binaries)
             (ryan-packages mozilla))

(define my-neovim
  (package
    (inherit neovim)
    (native-inputs
      (modify-inputs (package-native-inputs neovim)
                     (prepend gcc-13)))))

(define %home-symlinks
  `((".config/guix/home-config/fish" ".config/fish")
    (".config/guix/home-config/nix-config" ".config/nix")
    (".config/guix/home-config/nix-home-manager" ".config/home-manager")))

(home-symlinks %home-symlinks)

(home-environment
  ;; Below is the list of packages that will show up in your
  ;; Home profile, under ~/.guix-home/profile.
  (packages (append (specifications->packages (list "bat"
                                                    "fd"
                                                    ;"fish"
                                                    "xdg-utils"
                                                    "abook"
                                                    "libnotify"
                                                    "fzf"
                                                    "waypipe"
                                                    "foot"
                                                    "pulseaudio" ;only for pactl
                                                    "qpwgraph"
                                                    "gnunet"
                                                    ;"ffmpeg" ; removed for mpv prop input
                                                    "qrencode"
                                                    "tmux"
                                                    "binutils"
                                                    "gcc-toolchain"
                                                    "borg"
                                                    "restic"
                                                    "rsync"
                                                    "cloc"
                                                    "sc-im"
                                                    "pv"
                                                    "jq"
                                                    "gpgme"
                                                    "bombadillo"
                                                    "python-msgpack"
                                                    "wdisplays"
                                                    "kanshi"
                                                    "libreoffice"
                                                    "flatpak"
                                                    "gnupg"
                                                    "spotifyd"
                                                    "lsof"
                                                    "pavucontrol"
                                                    "netcat"
                                                    "bind:utils"
                                                    "font-cns11643"
                                                    "font-google-noto-emoji"
                                                    "syncthing"
                                                    ;"taskwarrior"
                                                    ;"tasksh"
                                                    ;"imv" ; Nix pkg now for MESA stuff
                                                    "perl"
                                                    "tor"
                                                    "unzip"
                                                    "htop"
                                                    "curl"
                                                    "pandoc"
                                                    "texlive-bin"
                                                    "texlive-scheme-basic"
                                                    "texlive-txfonts"
                                                    "texlive-amsfonts"
                                                    "texlive-lm"
                                                    "texlive-lm-math"
                                                    "texlive-iftex"
                                                    "texlive-unicode-math"
                                                    "texlive-fontspec"
                                                    "texlive-xcolor"
                                                    "texlive-geometry"
                                                    "texlive-hyperref"
                                                    "texlive-parskip"
                                                    "texlive-etoolbox"
                                                    "texlive-setspace"
                                                    "texlive-booktabs"
                                                    "texlive-mdwtools"
                                                    "texlive-caption"
                                                    "texlive-diagbox"
                                                    "texlive-pict2e"
                                                    "texlive-ulem"
                                                    "zathura"
                                                    "zathura-pdf-mupdf"
                                                    "go"
                                                    "fzf"
                                                    "weechat"
                                                    "gimp"
                                                    "python"
                                                    "python:tk"
                                                    "file"
                                                    "python-lsp-server"
                                                    "kdenlive"
                                                    "sqlite"
                                                    ;"mpv" ; Now a nix pkg for MESA stuff
                                                    "qbittorrent"
                                                    "playerctl"
                                                    ;"aerc"
                                                    "tcpdump"
                                                    "pamixer"
                                                    "git"
                                                    "git:send-email"
                                                    "password-store"
                                                    "node"
                                                    "kanshi"
                                                    ;"firefox"
                                                    "signal-desktop"
                                                    "sc-im"
                                                    "git-lfs"))
                    (list my-neovim calcurse-fixed )))

  ;; 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
                   (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l")
                              ("ls" . "ls -p --color=auto")
                              ("spt" . "spotify_player")
                              ("python" . "python3")))
                   (bashrc (list (local-file
                                  "bashrc")))
                   (bash-profile (list (local-file
                                        "bash_profile")))))
         (service home-xdg-configuration-files-service-type
                  `(("nvim/init.vim" ,(local-file "nvim/config/init.vim"))
                    ("nvim/after/ftplugin/markdown/custom.vim" ,(local-file "nvim/config/after/ftplugin/markdown/custom.vim"))
                    ("nvim/after/ftplugin/mail/custom.vim" ,(local-file "nvim/config/after/ftplugin/mail/custom.vim"))
                    ("sway" ,(local-file "sway" #:recursive? #t))
                    ;("hypr" ,(local-file "hypr" #:recursive? #t))
                    ("hypr/monitors.conf", (local-file "hypr/monitors.conf"))
                    ("hypr/pyprland.toml", (local-file "hypr/pyprland.toml"))
                    ("hypr/family_guy.mp4", (local-file "hypr/family_guy.mp4"))
                    ("hypr/hyprlock.conf", (local-file "hypr/hyprlock.conf"))
                    ("hypr/hypridle.conf", (local-file "hypr/hypridle.conf"))
                    ("hypr/kanshi.conf", (local-file "hypr/kanshi.conf"))
                    ("hypr/subwaysurfer.webm", (local-file "hypr/subwaysurfer.webm"))
                    ("hypr/Wallpapers", (local-file "hypr/Wallpapers" #:recursive? #t))
                    ("hypr/scripts", (local-file "hypr/scripts" #:recursive? #t))
                    ("wpaperd" ,(local-file "wpaperd" #:recursive? #t))
                    ("mpv" ,(local-file "mpv" #:recursive? #t))
                    ("foot" ,(local-file "foot" #:recursive? #t))
                    ("pulse/client.conf" ,(local-file "pulseaudio/client.conf"))
                    ("waybar" ,(local-file "waybar" #:recursive? #t))
                    ("alacritty" ,(local-file "alacritty" #:recursive? #t))
                    ("aerc" ,(local-file "aerc" #:recursive? #t)) ))
         (service home-files-service-type
                  `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
                    (".ssh/config" ,(local-file "ssh/config"))
                    (".icons" ,(local-file "icons" #:recursive? #t))
                    (".mozilla/native-messaging-hosts/gpgmejson.json" ,(local-file "mailvelope/gpgmejson.json"))
                    (".local/share/mailvelope" ,(local-file "mailvelope" #:recursive? #t))
                    (".mozilla/native-messaging-hosts/tridactyl.json" ,(local-file "tridactyl/tridactyl.json"))
                    (".local/share/tridactyl" ,(local-file "tridactyl" #:recursive? #t))
                    ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol"))
                    ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf"))
                    (".gnupg/gpg.conf" ,(local-file "gnupg/gpg.conf"))
                    (".local/share/fonts" ,(local-file "fonts" #:recursive? #t))
                    (".gitconfig" ,(local-file "gitconfig"))
                    (".docker/cli-plugins" ,(local-file "docker/cli-plugins" #:recursive? #t))
                    (".nix-channels" ,(local-file "nix-channels"))))
         (service home-pipewire-service-type)
         (service home-spotifyd-service-type)
         ; font things for nix to play nice
         (simple-service 'additional-fonts-service
                         home-fontconfig-service-type
                         (list "~/.nix-profile/share/fonts"
                               '(match (@ (target "pattern"))
                                       (edit (@ (name "family") (mode "prepend"))
                                             (string "DejaVu Sans")))
                               '(alias
                                  (family "serif")
                                  (prefer
                                    (family "DejaVu Serif")))
                               '(alias
                                  (family "sans")
                                  (prefer
                                    (family "DejaVu Sans")))
                               '(alias
                                  (family "monospace")
                                  (prefer
                                    (family "DejaVu Sans Mono")))))
         (service home-dbus-service-type)
         (service downloads-garbage-collector-service-type
                  (downloads-garbage-collector-configuration
                    (user "ryan")))
                           ;;; trying some changes
         ;(template-files "."
         ;'("spotify-player/app.toml"
         ;;;
         (service home-gpg-agent-service-type
                  (home-gpg-agent-configuration
                    (pinentry-program
                      (file-append pinentry "/bin/pinentry"))
                    (ssh-support? #t))) )))