home-config/home-configuration.scm

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