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