2022-10-13 22:06:14 +02:00
|
|
|
(define-module (oni home config rincewind)
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((gnu home services guix)
|
|
|
|
#:select (home-channels-service-type))
|
|
|
|
#:use-module ((gnu home)
|
|
|
|
#:select (home-environment))
|
2023-03-31 07:38:31 +02:00
|
|
|
#:use-module ((gnu packages certs)
|
|
|
|
#:select (nss-certs))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((gnu packages emacs)
|
|
|
|
#:select (emacs-next))
|
|
|
|
#:use-module ((gnu packages emacs-xyz)
|
2023-03-31 07:38:31 +02:00
|
|
|
#:select (emacs-org-roam
|
|
|
|
emacs-vterm
|
|
|
|
emacs-guix))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((gnu packages file-systems)
|
|
|
|
#:select (tmsu))
|
2023-03-31 07:38:31 +02:00
|
|
|
#:use-module ((gnu packages forth)
|
|
|
|
#:select (gforth))
|
|
|
|
#:use-module ((gnu packages gnome)
|
|
|
|
#:select (hicolor-icon-theme))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((gnu packages linux)
|
|
|
|
#:select (fakeroot))
|
2023-03-31 07:38:31 +02:00
|
|
|
#:use-module ((gnu packages mail)
|
|
|
|
#:select (notmuch
|
|
|
|
emacs-notmuch))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((gnu packages music)
|
|
|
|
#:select (easytag))
|
|
|
|
#:use-module ((gnu packages video)
|
|
|
|
#:select (mpv
|
|
|
|
mpv-mpris))
|
|
|
|
#:use-module ((gnu packages)
|
|
|
|
#:select (specification->package+output))
|
|
|
|
#:use-module ((gnu services)
|
|
|
|
#:select (service
|
|
|
|
simple-service))
|
|
|
|
#:use-module ((guix channels)
|
|
|
|
#:select (channel
|
|
|
|
make-channel-introduction
|
|
|
|
openpgp-fingerprint))
|
|
|
|
#:use-module ((oni home config common)
|
|
|
|
#:select (home-redshift-service
|
2023-03-16 08:47:23 +01:00
|
|
|
;; home-xbindkeys-service
|
2023-03-07 07:12:25 +01:00
|
|
|
home-zsh-service
|
|
|
|
home-guile-service
|
|
|
|
home-xmodmap-service
|
|
|
|
home-openssh-service
|
|
|
|
home-kitty-service))
|
|
|
|
#:use-module ((oni home services dunst)
|
|
|
|
#:select (home-dunst-default-service))
|
|
|
|
#:use-module ((oni home services emacs)
|
|
|
|
#:select (home-emacs-service-type
|
|
|
|
home-emacs-configuration))
|
|
|
|
#:use-module ((oni home services environment)
|
|
|
|
#:select (home-environment-service))
|
|
|
|
#:use-module ((oni home services flameshot)
|
|
|
|
#:select (home-flameshot-service-type))
|
|
|
|
#:use-module ((oni home services kdeconnect)
|
|
|
|
#:select (home-kdeconnect-service-type))
|
|
|
|
#:use-module ((oni home services mpd)
|
|
|
|
#:select (home-mpd-service-type
|
|
|
|
home-mpd-configuration
|
|
|
|
<home-mpd-audio-output>
|
2023-03-08 08:51:42 +01:00
|
|
|
home-mpc-update-service-type
|
|
|
|
home-mpd-notify-service-type))
|
2023-03-08 08:10:57 +01:00
|
|
|
#:use-module ((oni home services picom)
|
|
|
|
#:select (home-picom-service-type
|
|
|
|
home-picom-configuration))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((oni home services polybar)
|
|
|
|
#:select (home-polybar-service-type
|
|
|
|
home-polybar-configuration))
|
|
|
|
#:use-module ((oni home services rofi)
|
|
|
|
#:select (home-rofi-default-service))
|
2023-03-17 00:35:06 +01:00
|
|
|
#:use-module ((oni home services stumpwm)
|
|
|
|
#:select (home-stumpwm-service-type
|
|
|
|
home-stumpwm-configuration))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((oni home services syncthing)
|
|
|
|
#:select (home-syncthing-service-type))
|
|
|
|
#:use-module ((oni home services zsh)
|
|
|
|
#:select (home-zsh-syntax-highlighting-service-type
|
|
|
|
home-zsh-autosuggestions-service-type))
|
|
|
|
#:use-module ((oni packages count-emails)
|
|
|
|
#:select (count-emails))
|
|
|
|
#:use-module ((oni packages emacs)
|
|
|
|
#:select (emacs-inkplate))
|
2023-03-15 08:21:03 +01:00
|
|
|
#:use-module ((oni packages emacs-config)
|
2023-03-17 00:35:27 +01:00
|
|
|
#:select (emacs-oni-org-roam
|
2023-04-02 07:57:22 +02:00
|
|
|
emacs-oni-vterm
|
|
|
|
emacs-oni-elisp))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((oni packages hlwm-run-or-raise)
|
|
|
|
#:select (hlwm-run-or-raise))
|
|
|
|
#:use-module ((oni packages inbox-size)
|
|
|
|
#:select (inbox-size))
|
|
|
|
#:use-module ((oni packages mpd-random-albums)
|
|
|
|
#:select (mpd-random-albums))
|
|
|
|
#:use-module ((oni packages notmuch-collect-tasks)
|
|
|
|
#:select (notmuch-collect-tasks))
|
|
|
|
#:use-module ((oni packages notmuch-tag-mailinglists)
|
|
|
|
#:select (notmuch-tag-mailinglists))
|
|
|
|
#:use-module ((oni packages pick-random-wallpaper)
|
|
|
|
#:select (pick-random-wallpaper))
|
|
|
|
#:use-module ((oni packages shutdown-rofi)
|
|
|
|
#:select (shutdown-rofi))
|
2023-03-16 08:47:23 +01:00
|
|
|
#:use-module ((oni packages stumpwm)
|
|
|
|
#:select (stumpwm+swank))
|
2023-03-07 07:12:25 +01:00
|
|
|
#:use-module ((oni packages emacs-outli)
|
|
|
|
#:select (emacs-outli))
|
|
|
|
#:use-module ((oop goops)
|
|
|
|
#:select (make)))
|
2022-09-27 01:05:48 +02:00
|
|
|
|
|
|
|
(define (with-master-branch package)
|
|
|
|
"Apply a transformation to PACKAGE so that it uses the master branch."
|
|
|
|
((options->transformation
|
|
|
|
`((with-branch . ,(string-append (package-name package) "=master"))))
|
|
|
|
package))
|
2022-09-23 07:57:15 +02:00
|
|
|
|
2023-03-08 08:08:02 +01:00
|
|
|
(define rincewind-picom-service
|
|
|
|
(service home-picom-service-type
|
|
|
|
(home-picom-configuration
|
|
|
|
(backend "glx")
|
|
|
|
(glx-no-stencil #t)
|
|
|
|
(detect-transient #t)
|
|
|
|
(shadow #t)
|
|
|
|
(shadow-radius 5)
|
|
|
|
(shadow-opacity 85)
|
|
|
|
(shadow-offset-x 15)
|
|
|
|
(shadow-offset-y 15)
|
|
|
|
(shadow-exclude
|
|
|
|
'("name = 'mowedline'"
|
|
|
|
"class_g = 'trayer'"
|
|
|
|
"bounding_shaped"
|
2023-03-17 06:23:14 +01:00
|
|
|
"class_g = 'i3lock'"))
|
2023-03-08 08:08:02 +01:00
|
|
|
(wintypes
|
|
|
|
'((dnd (shadow . #f))
|
|
|
|
(dock (shadow . #f))))
|
|
|
|
(corner-radius 15)
|
|
|
|
(inactive-opacity 75)
|
|
|
|
(active-opacity 95)
|
|
|
|
(frame-opacity 100)
|
|
|
|
(inactive-opacity-override #t)
|
2023-03-30 18:55:48 +02:00
|
|
|
(opacity-rule
|
|
|
|
'("100:name *?= '(Meeting) | Microsoft Teams'"
|
|
|
|
"100:name *?= 'freerdp'"))
|
2023-03-08 08:08:02 +01:00
|
|
|
(blur-background #t)
|
|
|
|
(blur-background-frame #t)
|
|
|
|
(blur
|
|
|
|
'((method . "dual_kawase")
|
|
|
|
(strength . 6.9)))
|
|
|
|
(blur-background-fixed #t)
|
|
|
|
(blur-background-exclude
|
|
|
|
'("name *= 'rofi'"
|
2023-03-17 06:23:14 +01:00
|
|
|
"class_g = 'i3lock'"))
|
2023-03-08 08:08:02 +01:00
|
|
|
(focus-exclude
|
|
|
|
'("name *= 'rofi'"
|
2023-03-17 06:23:14 +01:00
|
|
|
"class_g = 'i3lock'"))
|
2023-03-08 08:08:02 +01:00
|
|
|
(fading #t)
|
2023-03-17 00:54:55 +01:00
|
|
|
(fade-exclude
|
2023-03-30 18:55:48 +02:00
|
|
|
`("class_g = 'i3lock'"))
|
2023-03-08 08:08:02 +01:00
|
|
|
(fade-in-step 3)
|
|
|
|
(fade-out-step 3))))
|
|
|
|
|
2022-09-23 07:57:15 +02:00
|
|
|
(home-environment
|
2022-10-05 08:19:34 +02:00
|
|
|
(packages (list mpv mpv-mpris easytag
|
2022-09-27 01:05:48 +02:00
|
|
|
(specification->package+output "glibc-locales")
|
|
|
|
(specification->package+output "font-fantasque-sans")
|
|
|
|
(specification->package+output "font-comic-neue")
|
|
|
|
hlwm-run-or-raise
|
|
|
|
pick-random-wallpaper
|
|
|
|
notmuch-collect-tasks
|
|
|
|
notmuch-tag-mailinglists
|
|
|
|
(inbox-size emacs-next)
|
2022-10-05 08:19:34 +02:00
|
|
|
count-emails
|
2022-10-14 05:45:32 +02:00
|
|
|
shutdown-rofi
|
2022-10-05 08:19:34 +02:00
|
|
|
emacs-org-roam
|
|
|
|
emacs-vterm
|
|
|
|
fakeroot ; Needed for build arch packages
|
2022-11-08 05:16:19 +01:00
|
|
|
tmsu
|
|
|
|
mpd-random-albums
|
2023-03-31 07:38:31 +02:00
|
|
|
notmuch
|
|
|
|
emacs-notmuch
|
2023-03-06 19:19:33 +01:00
|
|
|
emacs-inkplate
|
|
|
|
emacs-outli
|
2023-03-31 07:38:31 +02:00
|
|
|
emacs-guix
|
2023-03-17 00:35:27 +01:00
|
|
|
emacs-oni-org-roam
|
2023-03-31 07:38:31 +02:00
|
|
|
emacs-oni-vterm
|
2023-04-02 07:57:22 +02:00
|
|
|
emacs-oni-elisp
|
2023-03-31 07:38:31 +02:00
|
|
|
gforth
|
|
|
|
;; Might be needed for certain icons?
|
|
|
|
hicolor-icon-theme
|
|
|
|
;; Might be needed for cetrificates
|
|
|
|
nss-certs))
|
2022-09-23 07:57:15 +02:00
|
|
|
|
|
|
|
(services
|
|
|
|
(list
|
|
|
|
home-environment-service
|
|
|
|
home-rofi-default-service
|
2022-09-27 01:05:48 +02:00
|
|
|
home-dunst-default-service
|
|
|
|
home-redshift-service
|
2023-03-16 08:47:23 +01:00
|
|
|
;; home-xbindkeys-service
|
2022-09-27 01:05:48 +02:00
|
|
|
home-zsh-service
|
|
|
|
home-guile-service
|
|
|
|
home-xmodmap-service
|
|
|
|
home-openssh-service
|
|
|
|
home-kitty-service
|
2023-03-08 08:08:02 +01:00
|
|
|
rincewind-picom-service
|
2022-09-27 01:05:48 +02:00
|
|
|
|
|
|
|
;; This has to be the first extension because it needs to be added to the
|
|
|
|
;; configuration last.
|
|
|
|
(service home-zsh-syntax-highlighting-service-type)
|
|
|
|
(service home-zsh-autosuggestions-service-type)
|
2022-09-23 07:57:15 +02:00
|
|
|
|
|
|
|
(simple-service 'my-channel-service
|
|
|
|
home-channels-service-type
|
|
|
|
(list
|
|
|
|
(channel
|
|
|
|
(name 'oni)
|
2023-04-02 07:57:42 +02:00
|
|
|
(url "https://code.ryuslash.org/ryuslash/guix-packages.git")
|
2022-09-23 07:57:15 +02:00
|
|
|
(introduction
|
|
|
|
(make-channel-introduction
|
|
|
|
"646573578b7adfbff415645fed201269076cebf6"
|
|
|
|
(openpgp-fingerprint
|
|
|
|
"061C C5C4 D936 C9A8 AECC 1A17 7D5C 407B 4350 25C1"))))
|
|
|
|
(channel
|
|
|
|
(name 'guix-gaming-games)
|
|
|
|
(url "https://gitlab.com/guix-gaming-channels/games.git")
|
|
|
|
(introduction
|
|
|
|
(make-channel-introduction
|
|
|
|
"c23d64f1b8cc086659f8781b27ab6c7314c5cca5"
|
|
|
|
(openpgp-fingerprint
|
2022-09-27 01:05:48 +02:00
|
|
|
"50F3 3E2E 5B0C 3D90 0424 ABE8 9BDC F497 A4BB CC7F"))))))
|
|
|
|
|
2023-03-16 08:47:23 +01:00
|
|
|
;; (service home-polybar-service-type
|
|
|
|
;; (home-polybar-configuration
|
|
|
|
;; (bar "rincewind")))
|
2022-09-27 01:05:48 +02:00
|
|
|
|
2023-03-16 08:47:23 +01:00
|
|
|
;; (service home-kdeconnect-service-type)
|
2022-10-05 08:19:34 +02:00
|
|
|
(service home-syncthing-service-type)
|
|
|
|
|
|
|
|
(service home-emacs-service-type
|
|
|
|
(home-emacs-configuration
|
2022-10-07 08:21:43 +02:00
|
|
|
(package emacs-next)))
|
|
|
|
|
2022-11-08 05:16:19 +01:00
|
|
|
(service home-flameshot-service-type)
|
|
|
|
|
|
|
|
(service home-mpd-service-type
|
|
|
|
(home-mpd-configuration
|
|
|
|
(music-directory "~/music")
|
|
|
|
(playlist-directory "~/music/playlists")
|
|
|
|
(log-file "~/.local/share/mpd/mpd.log")
|
|
|
|
(pid-file "~/.local/share/mpd/mpd.pid")
|
|
|
|
(db-file "~/.local/share/mpd/mpd.db")
|
|
|
|
(state-file "~/.local/share/mpd/mpdstate")
|
|
|
|
(audio-outputs
|
|
|
|
(list (make <home-mpd-audio-output> #:type "pulse" #:name "MPD Pulse")
|
|
|
|
(make <home-mpd-audio-output>
|
|
|
|
#:type "fifo"
|
|
|
|
#:name "Visualizer"
|
|
|
|
#:path "/tmp/mpd.fifo"
|
2022-11-08 06:46:07 +01:00
|
|
|
#:format "44100:16:2")))))
|
2023-03-08 08:51:42 +01:00
|
|
|
(service home-mpc-update-service-type)
|
2023-03-17 00:35:06 +01:00
|
|
|
(service home-mpd-notify-service-type)
|
|
|
|
|
|
|
|
(service home-stumpwm-service-type
|
|
|
|
(home-stumpwm-configuration
|
|
|
|
(package stumpwm+swank))))))
|