home-config/home-configuration.scm

f34a9eeda9e4a7ddbaf22d305d20439a1c5121e4 · 6.1 KB · 113 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)
19 (ryan-services pipewire))
20
21 (define my-neovim
22 (package
23 (inherit neovim)
24 (native-inputs
25 (modify-inputs (package-native-inputs neovim)
26 (prepend gcc-12)))))
27
28 (home-environment
29 ;; Below is the list of packages that will show up in your
30 ;; Home profile, under ~/.guix-home/profile.
31 (packages (append (specifications->packages (list "bat"
32 "qrencode"
33 "binutils"
34 "gcc-toolchain"
35 "borg"
36 "python-msgpack"
37 "libreoffice"
38 "flatpak"
39 "gnupg"
40 "lsof"
41 "pavucontrol"
42 "bind:utils"
43 "font-cns11643"
44 "syncthing"
45 "perl"
46 "tor"
47 "unzip"
48 "alacritty"
49 "htop"
50 "curl"
51 "pandoc"
52 "texlive-base"
53 "texlive-txfonts"
54 "texlive-amsfonts"
55 "texlive-lm"
56 "texlive-lm-math"
57 "texlive-iftex"
58 "texlive-unicode-math"
59 "texlive-fontspec"
60 "texlive-xcolor"
61 "texlive-latex-geometry"
62 "texlive-hyperref"
63 "texlive-latex-parskip"
64 "texlive-etoolbox"
65 "zathura"
66 "zathura-pdf-mupdf"
67 "fzf"
68 "weechat"
69 "icedove-minimal"
70 "gimp"
71 "python"
72 "python:tk"
73 "file"
74 "python-lsp-server"
75 "sqlite"
76 "git"))
77 (list my-neovim)))
78
79 ;; Below is the list of Home services. To search for available
80 ;; services, run 'guix home search KEYWORD' in a terminal.
81 (services
82 (list (service home-bash-service-type
83 (home-bash-configuration
84 (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l")
85 ("ls" . "ls -p --color=auto")
86 ("python" . "python3")))
87 (bashrc (list (local-file
88 "/home/ryan/.config/guix/home-config/bashrc"
89 "bashrc")))
90 (bash-profile (list (local-file
91 "/home/ryan/.config/guix/home-config/bash_profile"
92 "bash_profile")))))
93 (service home-xdg-configuration-files-service-type
94 `(("nvim/init.vim" ,(local-file "nvim/config/init.vim"))
95 ("nvim/after/ftplugin/markdown/custom.vim" ,(local-file "nvim/config/after/ftplugin/markdown/custom.vim"))
96 ("sway" ,(local-file "sway" #:recursive? #t))
97 ("waybar" ,(local-file "waybar" #:recursive? #t))
98 ("alacritty" ,(local-file "alacritty" #:recursive? #t))
99 ("home-manager" ,(local-file "nix-home-manager" #:recursive? #t)) ))
100 (service home-files-service-type
101 `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
102 (".ssh/config" ,(local-file "ssh/config"))
103 ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol"))
104 ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf"))
105 (".fonts" ,(local-file "fonts" #:recursive? #t))
106 (".nix-channels" ,(local-file "nix-channels"))))
107 (service home-pipewire-service-type)
108 (service home-dbus-service-type)
109 (service home-gpg-agent-service-type
110 (home-gpg-agent-configuration
111 (pinentry-program
112 (file-append pinentry "/bin/pinentry"))
113 (ssh-support? #t))) )))