home-config/home-configuration.scm

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