home-config/home-configuration.scm

a960b899d6b286bea9c36e130b33f551d50f27aa · 6.6 KB · 122 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 (list my-neovim)))
87
88 ;; Below is the list of Home services. To search for available
89 ;; services, run 'guix home search KEYWORD' in a terminal.
90 (services
91 (list (service home-bash-service-type
92 (home-bash-configuration
93 (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l")
94 ("ls" . "ls -p --color=auto")
95 ("python" . "python3")))
96 (bashrc (list (local-file
97 "bashrc")))
98 (bash-profile (list (local-file
99 "bash_profile")))))
100 (service home-xdg-configuration-files-service-type
101 `(("nvim/init.vim" ,(local-file "nvim/config/init.vim"))
102 ("nvim/after/ftplugin/markdown/custom.vim" ,(local-file "nvim/config/after/ftplugin/markdown/custom.vim"))
103 ("sway" ,(local-file "sway" #:recursive? #t))
104 ("hypr" ,(local-file "hypr" #:recursive? #t))
105 ("waybar" ,(local-file "waybar" #:recursive? #t))
106 ("alacritty" ,(local-file "alacritty" #:recursive? #t))
107 ("aerc" ,(local-file "aerc" #:recursive? #t))
108 ("home-manager" ,(local-file "nix-home-manager" #:recursive? #t)) ))
109 (service home-files-service-type
110 `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
111 (".ssh/config" ,(local-file "ssh/config"))
112 ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol"))
113 ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf"))
114 (".fonts" ,(local-file "fonts" #:recursive? #t))
115 (".nix-channels" ,(local-file "nix-channels"))))
116 (service home-pipewire-service-type)
117 (service home-dbus-service-type)
118 (service home-gpg-agent-service-type
119 (home-gpg-agent-configuration
120 (pinentry-program
121 (file-append pinentry "/bin/pinentry"))
122 (ssh-support? #t))) )))