1 | (define-module (wkz-p1)
|
---|
2 | #:use-module (rde features)
|
---|
3 | #:use-module (rde features base)
|
---|
4 | #:use-module (rde features documentation)
|
---|
5 | #:use-module (rde features linux)
|
---|
6 | #:use-module (rde features networking)
|
---|
7 | #:use-module (rde features wm)
|
---|
8 | #:use-module (rde features finance)
|
---|
9 | #:use-module (rde features mail)
|
---|
10 | #:use-module (rde features irc)
|
---|
11 | #:use-module (rde features video)
|
---|
12 | #:use-module (rde features keyboard)
|
---|
13 | #:use-module (rde features fontutils)
|
---|
14 | #:use-module (rde features emacs)
|
---|
15 | #:use-module (rde features emacs-xyz)
|
---|
16 | #:use-module (rde features shellutils)
|
---|
17 | #:use-module (rde features terminals)
|
---|
18 | #:use-module (rde features shells)
|
---|
19 | #:use-module (rde features version-control)
|
---|
20 | #:use-module (rde features virtualization)
|
---|
21 | ;; #:use-module (rde features web)
|
---|
22 | #:use-module (rde features xdg)
|
---|
23 | #:use-module (gnu home-services base)
|
---|
24 | #:use-module (gnu home services)
|
---|
25 | #:use-module (gnu home-services wm)
|
---|
26 | #:use-module (gnu services)
|
---|
27 |
|
---|
28 | #:use-module (rde packages)
|
---|
29 | #:use-module (guix gexp))
|
---|
30 |
|
---|
31 | (define home-extra-packages-service
|
---|
32 | (simple-service
|
---|
33 | 'home-profile-extra-packages
|
---|
34 | home-profile-service-type
|
---|
35 | (append
|
---|
36 | (strings->packages
|
---|
37 | ;; "calibre"
|
---|
38 | "glibc-locales"
|
---|
39 | "icecat" ;; "nyxt"
|
---|
40 | ;; "ungoogled-chromium-wayland" "ublock-origin-chromium"
|
---|
41 |
|
---|
42 | "alsa-utils" "pamixer" "yt-dlp"
|
---|
43 | "pavucontrol" "wev"
|
---|
44 | "imagemagick"
|
---|
45 | "obs" "obs-wlrobs"
|
---|
46 | "recutils" "binutils" "make"
|
---|
47 |
|
---|
48 | "papirus-icon-theme" "arc-theme"
|
---|
49 | "thunar" "fd"
|
---|
50 | "glib:bin"
|
---|
51 | "wob" "brightnessctl"
|
---|
52 |
|
---|
53 | "ffmpeg"))))
|
---|
54 |
|
---|
55 | (define sway-extra-config-service
|
---|
56 | (simple-service
|
---|
57 | 'sway-extra-config
|
---|
58 | home-sway-service-type
|
---|
59 | `((output DP-2 scale 2)
|
---|
60 | ,@(map (lambda (x) `(workspace ,x output DP-2)) (iota 8 1))
|
---|
61 |
|
---|
62 | (bindswitch --reload --locked lid:on exec /run/setuid-programs/swaylock)
|
---|
63 |
|
---|
64 | ;; Brightness control
|
---|
65 | (bindsym --locked XF86MonBrightnessUp exec
|
---|
66 | ,(file-append (@ (gnu packages linux) brightnessctl) "/bin/brightnessctl")
|
---|
67 | set 5%+)
|
---|
68 | (bindsym --locked XF86MonBrightnessDown exec
|
---|
69 | ,(file-append (@ (gnu packages linux) brightnessctl) "/bin/brightnessctl")
|
---|
70 | set 5%-)
|
---|
71 |
|
---|
72 | ;; Audio control
|
---|
73 | (bindsym --locked XF86AudioLowerVolume exec
|
---|
74 | ,(file-append (@ (gnu packages pulseaudio) pamixer) "/bin/pamixer")
|
---|
75 | -ud 2)
|
---|
76 | (bindsym --locked XF86AudioMute exec
|
---|
77 | ,(file-append (@ (gnu packages pulseaudio) pamixer) "/bin/pamixer")
|
---|
78 | --toggle-mute)
|
---|
79 |
|
---|
80 | (bindsym $mod+Ctrl+o focus output left)
|
---|
81 | (input type:touchpad
|
---|
82 | ((tap enabled)))
|
---|
83 |
|
---|
84 | ;; (xwayland disable)
|
---|
85 | (bindsym $mod+Shift+Return exec emacs))))
|
---|
86 |
|
---|
87 | (define minimal-rde-config
|
---|
88 | (rde-config
|
---|
89 | (features
|
---|
90 | (list
|
---|
91 | ;; %general-features
|
---|
92 | (feature-user-info
|
---|
93 | #:user-name "w96k"
|
---|
94 | #:full-name "Mikhail Kirillov"
|
---|
95 | #:email "w96k.ru@gmail.com"
|
---|
96 | #:emacs-advanced-user? #t)
|
---|
97 |
|
---|
98 | (feature-vterm)
|
---|
99 | (feature-bash)
|
---|
100 | (feature-direnv)
|
---|
101 |
|
---|
102 | (feature-qemu)
|
---|
103 |
|
---|
104 | (feature-base-services)
|
---|
105 | (feature-base-packages)
|
---|
106 |
|
---|
107 | (feature-desktop-services)
|
---|
108 | (feature-hidpi)
|
---|
109 | (feature-foreign-distro)
|
---|
110 |
|
---|
111 | (feature-sway)
|
---|
112 | (feature-emacs
|
---|
113 | #:default-application-launcher? #t)
|
---|
114 |
|
---|
115 | (feature-keyboard
|
---|
116 | ;; To get all available options, layouts and variants run:
|
---|
117 | ;; cat `guix build xkeyboard-config`/share/X11/xkb/rules/evdev.lst
|
---|
118 | #:keyboard-layout
|
---|
119 | (keyboard-layout
|
---|
120 | "us,ru"
|
---|
121 | "qwerty"
|
---|
122 | #:options '("grp:shifts_toggle" "ctrl:nocaps")))
|
---|
123 |
|
---|
124 | (feature-irc-settings
|
---|
125 | #:irc-accounts (list
|
---|
126 | (irc-account
|
---|
127 | (id 'libera)
|
---|
128 | (network "irc.libera.chat")
|
---|
129 | (nick "w96k")
|
---|
130 | (bouncer? #t))))
|
---|
131 |
|
---|
132 | ;; (feature-alternative-frontends)
|
---|
133 |
|
---|
134 | (feature-youtube-dl)
|
---|
135 |
|
---|
136 | (feature-fonts
|
---|
137 | #:default-font-size 13)
|
---|
138 |
|
---|
139 | (feature-emacs-appearance
|
---|
140 | #:header-line-as-mode-line? #f
|
---|
141 | )
|
---|
142 | (feature-emacs-faces)
|
---|
143 | (feature-emacs-modus-themes)
|
---|
144 |
|
---|
145 | (feature-emacs-completion
|
---|
146 | #:mini-frame? #f
|
---|
147 | #:marginalia-align 'right)
|
---|
148 | (feature-emacs-corfu
|
---|
149 | #:corfu-doc-auto #f)
|
---|
150 | (feature-emacs-vertico)
|
---|
151 |
|
---|
152 | (feature-emacs-tramp)
|
---|
153 | (feature-emacs-project)
|
---|
154 | (feature-compile)
|
---|
155 | (feature-emacs-perspective)
|
---|
156 | (feature-emacs-input-methods)
|
---|
157 | (feature-emacs-which-key)
|
---|
158 | (feature-emacs-dired)
|
---|
159 | (feature-emacs-eshell)
|
---|
160 | (feature-emacs-monocle)
|
---|
161 |
|
---|
162 | (feature-emacs-message)
|
---|
163 |
|
---|
164 |
|
---|
165 | (feature-emacs-erc
|
---|
166 | #:erc-log? #f
|
---|
167 | #:erc-autojoin-channels-alist '((Libera.Chat "#rde")))
|
---|
168 | (feature-emacs-telega)
|
---|
169 | (feature-emacs-elpher)
|
---|
170 |
|
---|
171 | (feature-emacs-pdf-tools)
|
---|
172 | ;; (feature-emacs-nov-el)
|
---|
173 | (feature-emacs-org)
|
---|
174 | (feature-emacs-org-roam
|
---|
175 | #:org-roam-directory "~/projects/at-w96k/content/digarden/pages/"
|
---|
176 | )
|
---|
177 | (feature-emacs-org-agenda)
|
---|
178 | (feature-emacs-org-protocol)
|
---|
179 | ;; TODO: Remove auctex dependency, which interjects in texinfo-mode.
|
---|
180 | ;; (feature-emacs-citar)
|
---|
181 |
|
---|
182 | ;; (feature-emacs-smartparens
|
---|
183 | ;; #:show-smartparens? #t)
|
---|
184 |
|
---|
185 | (feature-emacs-pulseaudio-control)
|
---|
186 | (feature-emacs-geiser)
|
---|
187 | (feature-emacs-guix)
|
---|
188 | (feature-emacs-eglot)
|
---|
189 |
|
---|
190 | (feature-manpages)
|
---|
191 |
|
---|
192 | (feature-xdg)
|
---|
193 |
|
---|
194 | (feature-git #:sign-commits? #f)
|
---|
195 |
|
---|
196 | (feature-custom-services
|
---|
197 | #:feature-name-prefix 'w96k
|
---|
198 | #:home-services
|
---|
199 | (list
|
---|
200 | home-extra-packages-service
|
---|
201 | sway-extra-config-service
|
---|
202 | ))
|
---|
203 |
|
---|
204 | ;; (feature-mpv
|
---|
205 | ;; #:extra-mpv-conf '((speed . 1.61)))
|
---|
206 |
|
---|
207 | (feature-sway-run-on-tty
|
---|
208 | #:sway-tty-number 2)
|
---|
209 | (feature-sway-screenshot)
|
---|
210 | ;; (feature-sway-statusbar
|
---|
211 | ;; #:use-global-fonts? #f)
|
---|
212 | (feature-waybar)
|
---|
213 | (feature-swayidle)
|
---|
214 | (feature-swaylock
|
---|
215 | #:swaylock (@ (gnu packages wm) swaylock-effects)
|
---|
216 | ;; The blur on lock screen is not privacy-friendly.
|
---|
217 | #:extra-config '((screenshots)
|
---|
218 | (effect-blur . 7x5)
|
---|
219 | (clock)))
|
---|
220 | ))))
|
---|
221 |
|
---|
222 | (rde-config-home-environment minimal-rde-config)
|
---|