home-config/home-configuration.scm

6b3c30c700976b22d978fe6247682d6d183260af · 11.5 KB · 209 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 "zathura"
111 "zathura-pdf-mupdf"
112 "go"
113 "fzf"
114 "weechat"
115 "gimp"
116 "python"
117 "python:tk"
118 "file"
119 "python-lsp-server"
120 "kdenlive"
121 "sqlite"
122 ;"mpv" ; Now a nix pkg for MESA stuff
123 "qbittorrent"
124 "playerctl"
125 ;"aerc"
126 "tcpdump"
127 "pamixer"
128 "git"
129 "git:send-email"
130 "password-store"
131 "node"
132 "kanshi"
133 ;"firefox"
134 "signal-desktop"
135 "sc-im"
136 "git-lfs"))
137 (list my-neovim calcurse-fixed )))
138
139 ;; Below is the list of Home services. To search for available
140 ;; services, run 'guix home search KEYWORD' in a terminal.
141 (services
142 (list (service home-bash-service-type
143 (home-bash-configuration
144 (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l")
145 ("ls" . "ls -p --color=auto")
146 ("spt" . "spotify_player")
147 ("python" . "python3")))
148 (bashrc (list (local-file
149 "bashrc")))
150 (bash-profile (list (local-file
151 "bash_profile")))))
152 (service home-xdg-configuration-files-service-type
153 `(("nvim/init.vim" ,(local-file "nvim/config/init.vim"))
154 ("nvim/after/ftplugin/markdown/custom.vim" ,(local-file "nvim/config/after/ftplugin/markdown/custom.vim"))
155 ("nvim/after/ftplugin/mail/custom.vim" ,(local-file "nvim/config/after/ftplugin/mail/custom.vim"))
156 ("sway" ,(local-file "sway" #:recursive? #t))
157 ("hypr" ,(local-file "hypr" #:recursive? #t))
158 ("wpaperd" ,(local-file "wpaperd" #:recursive? #t))
159 ("mpv" ,(local-file "mpv" #:recursive? #t))
160 ("foot" ,(local-file "foot" #:recursive? #t))
161 ("pulse/client.conf" ,(local-file "pulseaudio/client.conf"))
162 ("waybar" ,(local-file "waybar" #:recursive? #t))
163 ("alacritty" ,(local-file "alacritty" #:recursive? #t))
164 ("aerc" ,(local-file "aerc" #:recursive? #t)) ))
165 (service home-files-service-type
166 `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
167 (".ssh/config" ,(local-file "ssh/config"))
168 (".icons" ,(local-file "icons" #:recursive? #t))
169 ;(".mozilla/native-messaging-hosts/tridactyl.json" ,(local-file "tridactyl/tridactyl.json"))
170 ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol"))
171 ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf"))
172 (".local/share/fonts" ,(local-file "fonts" #:recursive? #t))
173 (".gitconfig" ,(local-file "gitconfig"))
174 (".docker/cli-plugins" ,(local-file "docker/cli-plugins" #:recursive? #t))
175 (".nix-channels" ,(local-file "nix-channels"))))
176 (service home-pipewire-service-type)
177 (service home-spotifyd-service-type)
178 ; font things for nix to play nice
179 (simple-service 'additional-fonts-service
180 home-fontconfig-service-type
181 (list "~/.nix-profile/share/fonts"
182 '(match (@ (target "pattern"))
183 (edit (@ (name "family") (mode "prepend"))
184 (string "DejaVu Sans")))
185 '(alias
186 (family "serif")
187 (prefer
188 (family "DejaVu Serif")))
189 '(alias
190 (family "sans")
191 (prefer
192 (family "DejaVu Sans")))
193 '(alias
194 (family "monospace")
195 (prefer
196 (family "DejaVu Sans Mono")))))
197 (service home-dbus-service-type)
198 (service downloads-garbage-collector-service-type
199 (downloads-garbage-collector-configuration
200 (user "ryan")))
201 ;;; trying some changes
202 ;(template-files "."
203 ;'("spotify-player/app.toml"
204 ;;;
205 (service home-gpg-agent-service-type
206 (home-gpg-agent-configuration
207 (pinentry-program
208 (file-append pinentry "/bin/pinentry"))
209 (ssh-support? #t))) )))