home-config/home-configuration.scm

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