home-config/home-configuration.scm

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