home-config/home-configuration.scm

9fd36bdd1a7a0e1b36096fae550071ea6fa953b8 · 6.7 KB · 123 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 "xdg-utils"
33 "abook"
34 "fzf"
35 "qrencode"
36 "binutils"
37 "gcc-toolchain"
38 "borg"
39 "python-msgpack"
40 "libreoffice"
41 "flatpak"
42 "gnupg"
43 "lsof"
44 "pavucontrol"
45 "bind:utils"
46 "font-cns11643"
47 "syncthing"
48 "perl"
49 "tor"
50 "unzip"
51 "alacritty"
52 "htop"
53 "curl"
54 "pandoc"
55 "texlive-base"
56 "texlive-txfonts"
57 "texlive-amsfonts"
58 "texlive-lm"
59 "texlive-lm-math"
60 "texlive-iftex"
61 "texlive-unicode-math"
62 "texlive-fontspec"
63 "texlive-xcolor"
64 "texlive-latex-geometry"
65 "texlive-hyperref"
66 "texlive-latex-parskip"
67 "texlive-etoolbox"
68 "zathura"
69 "zathura-pdf-mupdf"
70 "fzf"
71 "weechat"
72 "icedove-minimal"
73 "gimp"
74 "python"
75 "python:tk"
76 "file"
77 "python-lsp-server"
78 "kdenlive"
79 "sqlite"
80 "mpv"
81 "playerctl"
82 "aerc"
83 "tcpdump"
84 "pamixer"
85 "git"
86 "git-lfs"))
87 (list my-neovim)))
88
89 ;; Below is the list of Home services. To search for available
90 ;; services, run 'guix home search KEYWORD' in a terminal.
91 (services
92 (list (service home-bash-service-type
93 (home-bash-configuration
94 (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l")
95 ("ls" . "ls -p --color=auto")
96 ("python" . "python3")))
97 (bashrc (list (local-file
98 "bashrc")))
99 (bash-profile (list (local-file
100 "bash_profile")))))
101 (service home-xdg-configuration-files-service-type
102 `(("nvim/init.vim" ,(local-file "nvim/config/init.vim"))
103 ("nvim/after/ftplugin/markdown/custom.vim" ,(local-file "nvim/config/after/ftplugin/markdown/custom.vim"))
104 ("sway" ,(local-file "sway" #:recursive? #t))
105 ("hypr" ,(local-file "hypr" #:recursive? #t))
106 ("waybar" ,(local-file "waybar" #:recursive? #t))
107 ("alacritty" ,(local-file "alacritty" #:recursive? #t))
108 ("aerc" ,(local-file "aerc" #:recursive? #t))
109 ("home-manager" ,(local-file "nix-home-manager" #:recursive? #t)) ))
110 (service home-files-service-type
111 `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
112 (".ssh/config" ,(local-file "ssh/config"))
113 ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol"))
114 ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf"))
115 (".fonts" ,(local-file "fonts" #:recursive? #t))
116 (".nix-channels" ,(local-file "nix-channels"))))
117 (service home-pipewire-service-type)
118 (service home-dbus-service-type)
119 (service home-gpg-agent-service-type
120 (home-gpg-agent-configuration
121 (pinentry-program
122 (file-append pinentry "/bin/pinentry"))
123 (ssh-support? #t))) )))