home-config/home-configuration.scm

d465e92647470759177cb63914fd3571cea7a8a4 · 12.5 KB · 223 lines raw

1 ;; This "home-environment" file can be passed to 'guix home reconfigure'
2 ;; to reproduce the content of your profile. This is "symbolic": it only
3 ;; specifies package names. To reproduce the exact same profile, you also
4 ;; need to capture the channels being used, as returned by "guix describe".
5 ;; See the "Replicating Guix" section in the manual.
6
7 (use-modules (gnu home)
8 (gnu packages)
9 (gnu packages vim)
10 (gnu packages gcc)
11 (gnu packages gnupg)
12 (gnu services)
13 (guix packages)
14 (guix gexp)
15 (gnu home services shells)
16 (gnu home services desktop)
17 (gnu home services gnupg)
18 (gnu home services fontutils)
19 (gnu home services)
20 (ryan-services pipewire)
21 (ryan-services spotify)
22 (ryan-services file-manager)
23 (ryan-config utils)
24 (ryan-packages freedesktop)
25 (ryan-packages calcurse)
26 ;(ryan-packages binaries)
27 (rosenthal packages binaries)
28 (ryan-packages mozilla))
29
30 (define my-neovim
31 (package
32 (inherit neovim)
33 (native-inputs
34 (modify-inputs (package-native-inputs neovim)
35 (prepend gcc-12)))))
36
37 (define %home-symlinks
38 `((".config/guix/home-config/fish" ".config/fish")
39 (".config/guix/home-config/nix-config" ".config/nix")
40 (".config/guix/home-config/nix-home-manager" ".config/home-manager")))
41
42 (home-symlinks %home-symlinks)
43
44 (home-environment
45 ;; Below is the list of packages that will show up in your
46 ;; Home profile, under ~/.guix-home/profile.
47 (packages (append (specifications->packages (list "bat"
48 "fd"
49 "fish"
50 "xdg-utils"
51 "abook"
52 "libnotify"
53 "fzf"
54 "waypipe"
55 "foot"
56 "pulseaudio" ;only for pactl
57 "qpwgraph"
58 "gnunet"
59 ;"ffmpeg" ; removed for mpv prop input
60 "qrencode"
61 "tmux"
62 "binutils"
63 "gcc-toolchain"
64 "borg"
65 "restic"
66 "rsync"
67 "cloc"
68 "sc-im"
69 "pv"
70 "jq"
71 "bombadillo"
72 "python-msgpack"
73 "wdisplays"
74 "kanshi"
75 "libreoffice"
76 "flatpak"
77 "gnupg"
78 "spotifyd"
79 "lsof"
80 "pavucontrol"
81 "netcat"
82 "bind:utils"
83 "font-cns11643"
84 "font-google-noto-emoji"
85 "syncthing"
86 ;"taskwarrior"
87 ;"tasksh"
88 ;"imv" ; Nix pkg now for MESA stuff
89 "perl"
90 "tor"
91 "unzip"
92 "htop"
93 "curl"
94 "pandoc"
95 "texlive-bin"
96 "texlive-scheme-basic"
97 "texlive-txfonts"
98 "texlive-amsfonts"
99 "texlive-lm"
100 "texlive-lm-math"
101 "texlive-iftex"
102 "texlive-unicode-math"
103 "texlive-fontspec"
104 "texlive-xcolor"
105 "texlive-geometry"
106 "texlive-hyperref"
107 "texlive-parskip"
108 "texlive-etoolbox"
109 "texlive-setspace"
110 "texlive-booktabs"
111 "texlive-mdwtools"
112 "texlive-caption"
113 "texlive-diagbox"
114 "texlive-pict2e"
115 "texlive-ulem"
116 "zathura"
117 "zathura-pdf-mupdf"
118 "go"
119 "fzf"
120 "weechat"
121 "gimp"
122 "python"
123 "python:tk"
124 "file"
125 "python-lsp-server"
126 "kdenlive"
127 "sqlite"
128 ;"mpv" ; Now a nix pkg for MESA stuff
129 "qbittorrent"
130 "playerctl"
131 ;"aerc"
132 "tcpdump"
133 "pamixer"
134 "git"
135 "git:send-email"
136 "password-store"
137 "node"
138 "kanshi"
139 ;"firefox"
140 "signal-desktop"
141 "sc-im"
142 "git-lfs"))
143 (list my-neovim calcurse-fixed )))
144
145 ;; Below is the list of Home services. To search for available
146 ;; services, run 'guix home search KEYWORD' in a terminal.
147 (services
148 (list (service home-bash-service-type
149 (home-bash-configuration
150 (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l")
151 ("ls" . "ls -p --color=auto")
152 ("spt" . "spotify_player")
153 ("python" . "python3")))
154 (bashrc (list (local-file
155 "bashrc")))
156 (bash-profile (list (local-file
157 "bash_profile")))))
158 (service home-xdg-configuration-files-service-type
159 `(("nvim/init.vim" ,(local-file "nvim/config/init.vim"))
160 ("nvim/after/ftplugin/markdown/custom.vim" ,(local-file "nvim/config/after/ftplugin/markdown/custom.vim"))
161 ("nvim/after/ftplugin/mail/custom.vim" ,(local-file "nvim/config/after/ftplugin/mail/custom.vim"))
162 ("sway" ,(local-file "sway" #:recursive? #t))
163 ;("hypr" ,(local-file "hypr" #:recursive? #t))
164 ("hypr/monitors.conf", (local-file "hypr/monitors.conf"))
165 ("hypr/family_guy.mp4", (local-file "hypr/family_guy.mp4"))
166 ("hypr/hyprlock.conf", (local-file "hypr/hyprlock.conf"))
167 ("hypr/hypridle.conf", (local-file "hypr/hypridle.conf"))
168 ("hypr/kanshi.conf", (local-file "hypr/kanshi.conf"))
169 ("hypr/subwaysurfer.webm", (local-file "hypr/subwaysurfer.webm"))
170 ("hypr/Wallpapers", (local-file "hypr/Wallpapers" #:recursive? #t))
171 ("hypr/scripts", (local-file "hypr/scripts" #:recursive? #t))
172 ("wpaperd" ,(local-file "wpaperd" #:recursive? #t))
173 ("mpv" ,(local-file "mpv" #:recursive? #t))
174 ("foot" ,(local-file "foot" #:recursive? #t))
175 ("pulse/client.conf" ,(local-file "pulseaudio/client.conf"))
176 ("waybar" ,(local-file "waybar" #:recursive? #t))
177 ("alacritty" ,(local-file "alacritty" #:recursive? #t))
178 ("aerc" ,(local-file "aerc" #:recursive? #t)) ))
179 (service home-files-service-type
180 `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
181 (".ssh/config" ,(local-file "ssh/config"))
182 (".icons" ,(local-file "icons" #:recursive? #t))
183 ;(".mozilla/native-messaging-hosts/tridactyl.json" ,(local-file "tridactyl/tridactyl.json"))
184 ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol"))
185 ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf"))
186 (".local/share/fonts" ,(local-file "fonts" #:recursive? #t))
187 (".gitconfig" ,(local-file "gitconfig"))
188 (".docker/cli-plugins" ,(local-file "docker/cli-plugins" #:recursive? #t))
189 (".nix-channels" ,(local-file "nix-channels"))))
190 (service home-pipewire-service-type)
191 (service home-spotifyd-service-type)
192 ; font things for nix to play nice
193 (simple-service 'additional-fonts-service
194 home-fontconfig-service-type
195 (list "~/.nix-profile/share/fonts"
196 '(match (@ (target "pattern"))
197 (edit (@ (name "family") (mode "prepend"))
198 (string "DejaVu Sans")))
199 '(alias
200 (family "serif")
201 (prefer
202 (family "DejaVu Serif")))
203 '(alias
204 (family "sans")
205 (prefer
206 (family "DejaVu Sans")))
207 '(alias
208 (family "monospace")
209 (prefer
210 (family "DejaVu Sans Mono")))))
211 (service home-dbus-service-type)
212 (service downloads-garbage-collector-service-type
213 (downloads-garbage-collector-configuration
214 (user "ryan")))
215 ;;; trying some changes
216 ;(template-files "."
217 ;'("spotify-player/app.toml"
218 ;;;
219 (service home-gpg-agent-service-type
220 (home-gpg-agent-configuration
221 (pinentry-program
222 (file-append pinentry "/bin/pinentry"))
223 (ssh-support? #t))) )))