home-config/home-configuration.scm

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