2024-03-08 14:32:05 +00:00
|
|
|
(define-module (home-environments radio)
|
|
|
|
#|Ice-9|#
|
|
|
|
#|M|# #:use-module (ice-9 match)
|
|
|
|
|
|
|
|
#|GNU|#
|
2024-03-09 14:02:49 +00:00
|
|
|
#|•|# #:use-module (gnu)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|H|# #:use-module ((gnu home) #:select (this-home-environment))
|
2024-07-05 17:47:48 +00:00
|
|
|
#:use-module ((gnu home) #:hide (this-home-environment)
|
2024-03-08 14:32:05 +00:00
|
|
|
#:prefix user-)
|
|
|
|
|
|
|
|
#|GNU packages|#
|
|
|
|
#|A|# #:use-module (gnu packages admin)
|
|
|
|
#|B|# #:use-module (gnu packages bittorrent)
|
2024-05-26 04:12:09 +00:00
|
|
|
#:use-module (gnu packages browser-extensions)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|C|# #:use-module (gnu packages c)
|
|
|
|
#:use-module (gnu packages calendar)
|
2024-04-05 05:08:42 +00:00
|
|
|
#:use-module (gnu packages chromium)
|
2024-07-09 22:53:00 +00:00
|
|
|
#:use-module (gnu packages commencement)
|
2024-03-08 14:32:05 +00:00
|
|
|
#:use-module (gnu packages curl)
|
2024-03-23 06:20:49 +00:00
|
|
|
#|D|# #:use-module (gnu packages databases)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|F|# #:use-module (gnu packages file)
|
|
|
|
#:use-module (gnu packages fonts)
|
|
|
|
#:use-module (gnu packages freedesktop)
|
2024-03-27 01:39:35 +00:00
|
|
|
#|G|# #:use-module (gnu packages glib)
|
|
|
|
#:use-module (gnu packages games)
|
2024-04-23 14:28:05 +00:00
|
|
|
#:use-module (gnu packages gnome)
|
2024-03-08 14:32:05 +00:00
|
|
|
#:use-module (gnu packages gnu-doc)
|
|
|
|
#:use-module (gnu packages gnupg)
|
|
|
|
#:use-module (gnu packages guile-xyz)
|
2024-07-09 22:53:00 +00:00
|
|
|
#|H|# #:use-module (gnu packages haskell)
|
|
|
|
#:use-module (gnu packages haskell-xyz)
|
2024-04-23 14:28:05 +00:00
|
|
|
#|I|# #:use-module (gnu packages image)
|
|
|
|
#:use-module (gnu packages image-viewers)
|
2024-04-05 05:08:42 +00:00
|
|
|
#:use-module (gnu packages irc)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|L|# #:use-module (gnu packages linux)
|
2024-04-05 05:08:42 +00:00
|
|
|
#:use-module (gnu packages llvm)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|M|# #:use-module (gnu packages maths)
|
2024-04-05 05:08:42 +00:00
|
|
|
#:use-module (gnu packages messaging)
|
2024-03-08 14:32:05 +00:00
|
|
|
#:use-module (gnu packages minetest)
|
2024-04-23 14:28:05 +00:00
|
|
|
#|O|# #:use-module (gnu packages ocr)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|P|# #:use-module (gnu packages password-utils)
|
|
|
|
#:use-module (gnu packages pdf)
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
|
|
|
#|S|# #:use-module (gnu packages scheme)
|
|
|
|
#:use-module (gnu packages shells)
|
|
|
|
#:use-module (gnu packages ssh)
|
|
|
|
#:use-module (gnu packages suckless)
|
|
|
|
#|T|# #:use-module (gnu packages telegram)
|
2024-03-20 06:42:12 +00:00
|
|
|
#:use-module (gnu packages terminals)
|
2024-04-05 05:08:42 +00:00
|
|
|
#:use-module (gnu packages tex)
|
2024-04-05 05:06:48 +00:00
|
|
|
#:use-module (gnu packages text-editors)
|
2024-03-08 14:32:05 +00:00
|
|
|
#:use-module (gnu packages toys)
|
|
|
|
#|V|# #:use-module (gnu packages version-control)
|
|
|
|
#:use-module (gnu packages video)
|
|
|
|
#|W|# #:use-module (gnu packages wm)
|
|
|
|
#|X|# #:use-module (gnu packages xdisorg)
|
|
|
|
#:use-module (gnu packages xorg)
|
2024-03-20 06:42:12 +00:00
|
|
|
#|Z|# #:use-module (gnu packages zig-xyz)
|
2024-03-08 14:32:05 +00:00
|
|
|
|
|
|
|
#|GNU home services|#
|
2024-03-09 14:02:49 +00:00
|
|
|
#|•|# #:use-module (gnu home services)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|D|# #:use-module (gnu home services desktop)
|
|
|
|
#:use-module (gnu home services dotfiles)
|
|
|
|
#|G|# #:use-module (gnu home services guix)
|
2024-03-20 06:42:12 +00:00
|
|
|
#|P|# #:use-module (gnu home services pm)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|S|# #:use-module (gnu home services ssh)
|
|
|
|
#:use-module (gnu home services shepherd)
|
|
|
|
#:use-module (gnu home services sound)
|
|
|
|
|
|
|
|
#|Guix|#
|
|
|
|
#|C|# #:use-module (guix channels)
|
2024-06-04 01:03:50 +00:00
|
|
|
#|P|# #:use-module (guix packages)
|
2024-03-08 14:32:05 +00:00
|
|
|
|
2024-04-23 14:28:05 +00:00
|
|
|
#|Radio|#
|
|
|
|
#|C|# #:use-module ((radio channels) #:prefix channel:)
|
|
|
|
|
2024-03-08 14:32:05 +00:00
|
|
|
#|Radix|#
|
|
|
|
#|C|# #:use-module (radix combinators)
|
|
|
|
#|U|# #:use-module (radix utils)
|
|
|
|
|
|
|
|
#|Radix packages|#
|
2024-04-05 05:08:42 +00:00
|
|
|
#|B|# #:use-module (radix packages browser-extensions)
|
2024-03-23 06:20:49 +00:00
|
|
|
#|D|# #:use-module (radix packages disk)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|I|# #:use-module (radix packages image-viewers)
|
2024-07-05 17:47:15 +00:00
|
|
|
#|F|# #:use-module (radix packages fish-xyz)
|
|
|
|
#:use-module (radix packages freedesktop)
|
2024-03-26 20:21:58 +00:00
|
|
|
#:use-module (radix packages fonts)
|
|
|
|
#|P|# #:use-module (radix packages pdf)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|S|# #:use-module (radix packages seninha)
|
|
|
|
#:use-module (radix packages syndication)
|
2024-04-05 05:06:48 +00:00
|
|
|
#|T|# #:use-module (radix packages text-editors)
|
|
|
|
#:use-module (radix packages toys)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|W|# #:use-module (radix packages wm)
|
2024-06-09 16:49:23 +00:00
|
|
|
#|V|# #:use-module (radix packages video)
|
2024-04-23 14:28:05 +00:00
|
|
|
#|X|# #:use-module (radix packages xdisorg)
|
2024-03-08 14:32:05 +00:00
|
|
|
|
|
|
|
#|Radix home services|#
|
2024-03-09 14:02:49 +00:00
|
|
|
#|•|# #:use-module (radix home services)
|
2024-03-08 14:32:05 +00:00
|
|
|
#|G|# #:use-module (radix home services gnupg)
|
|
|
|
#|S|# #:use-module (radix home services shells)
|
2024-04-23 14:28:05 +00:00
|
|
|
#|X|# #:use-module (radix home services xdg)
|
2024-03-08 14:32:05 +00:00
|
|
|
|
2024-08-01 00:53:42 +00:00
|
|
|
#|Radio packages|#
|
|
|
|
#|E|# #:use-module ((radio packages emacs-xyz)
|
|
|
|
#:select (packages:all)
|
|
|
|
#:renamer (const 'packages:emacs-xyz))
|
2024-03-26 20:21:58 +00:00
|
|
|
#:export (home-environment
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
application:browser
|
|
|
|
application:editor
|
|
|
|
application:pager
|
|
|
|
application:reader
|
|
|
|
application:shell
|
|
|
|
application:terminal
|
|
|
|
application:wm
|
|
|
|
|
|
|
|
packages:blogging
|
|
|
|
packages:calendar
|
|
|
|
packages:databases
|
|
|
|
packages:desktop
|
|
|
|
packages:development
|
|
|
|
packages:documentation
|
|
|
|
packages:downloads
|
|
|
|
packages:file-managing
|
|
|
|
packages:fonts
|
|
|
|
packages:games
|
2024-07-09 22:23:58 +00:00
|
|
|
packages:haskell
|
2024-04-05 05:06:48 +00:00
|
|
|
packages:image
|
|
|
|
packages:messaging
|
|
|
|
packages:password
|
2024-07-09 22:23:58 +00:00
|
|
|
packages:scheme
|
2024-04-05 05:06:48 +00:00
|
|
|
packages:sound
|
|
|
|
packages:video
|
|
|
|
packages:web))
|
2024-03-26 20:21:58 +00:00
|
|
|
|
|
|
|
#|Default applications|#
|
2024-04-05 05:08:42 +00:00
|
|
|
(define application:browser "chromium")
|
2024-04-05 05:06:48 +00:00
|
|
|
(define application:editor "kak")
|
|
|
|
(define application:pager "less")
|
|
|
|
(define application:reader "sioyek")
|
2024-07-09 22:21:03 +00:00
|
|
|
(define application:terminal "footclient -D ~")
|
2024-04-05 05:06:48 +00:00
|
|
|
(define application:wm "river")
|
|
|
|
|
2024-06-04 01:03:50 +00:00
|
|
|
#|Package lists|#
|
2024-04-05 05:06:48 +00:00
|
|
|
(define packages:blogging
|
|
|
|
(list #|guile-xyz|# haunt))
|
|
|
|
|
|
|
|
(define packages:calendar
|
|
|
|
(list #|calendar|# remind))
|
|
|
|
|
|
|
|
(define packages:databases
|
|
|
|
(list #|databases|# recutils))
|
|
|
|
|
|
|
|
(define packages:desktop
|
2024-07-04 00:11:08 +00:00
|
|
|
(list #|admin |# fastfetch
|
2024-06-09 16:14:23 +00:00
|
|
|
#|freedesktop|# xdg-utils xdg-desktop-portal xdg-desktop-portal-wlr
|
|
|
|
xdg-terminal-exec
|
|
|
|
#|glib |# dbus
|
|
|
|
#|image |# grim slurp
|
|
|
|
#|terminals |# foot
|
|
|
|
#|toys |# wayneko
|
2024-06-09 19:40:04 +00:00
|
|
|
#|wm |# fnott rivercarro riverguile river-bnf swww
|
2024-06-09 16:14:23 +00:00
|
|
|
waybar-sans-elogind
|
|
|
|
#|xdisorg |# fuzzel wl-clipboard wlrctl gammastep
|
2024-07-04 00:11:49 +00:00
|
|
|
#|zig-xyz |# river-minimal))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:development
|
|
|
|
(list #|gnupg |# gnupg pinentry
|
2024-04-05 05:08:42 +00:00
|
|
|
#|llvm |# clang-15
|
2024-04-05 05:06:48 +00:00
|
|
|
#|math |# libqalculate
|
2024-04-05 05:08:42 +00:00
|
|
|
#|ssh |# openssh
|
2024-04-08 04:03:52 +00:00
|
|
|
#|text-editors |# kakoune kak-lsp parinfer-rust
|
2024-04-05 05:06:48 +00:00
|
|
|
#|vesion-control|# git))
|
|
|
|
|
|
|
|
(define packages:documentation
|
|
|
|
(list #|c |# c-intro-and-ref
|
|
|
|
#|gnu-doc|# gnu-standards
|
2024-06-04 01:06:03 +00:00
|
|
|
#|scheme |# r7rs-small-texinfo sicp))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:downloads
|
|
|
|
(list #|bittorrent|# aria2 qbittorrent
|
|
|
|
#|curl |# curl
|
2024-04-05 05:08:42 +00:00
|
|
|
#|video |# yt-dlp))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:file-managing
|
|
|
|
(list #|disk |# lf
|
|
|
|
#|file |# file
|
2024-05-05 17:38:18 +00:00
|
|
|
#|haskell-xyz |# pandoc
|
2024-04-05 05:06:48 +00:00
|
|
|
#|image-viewers|# chafa
|
2024-08-01 00:29:43 +00:00
|
|
|
#|pdf |# img2pdf poppler
|
2024-04-05 05:06:48 +00:00
|
|
|
#|seninha |# fmutils
|
|
|
|
#|video |# ffmpegthumbnailer))
|
|
|
|
|
|
|
|
(define packages:fonts
|
|
|
|
(list #|fonts|# font-awesome font-google-noto font-google-noto-emoji
|
|
|
|
font-juliamono font-liberation font-meslo-lg-dz font-misc-misc
|
|
|
|
font-un font-wqy-zenhei))
|
|
|
|
|
2024-04-08 04:03:52 +00:00
|
|
|
(define packages:games
|
2024-04-23 14:28:05 +00:00
|
|
|
(list #|games|# minetest red-eclipse supertuxkart xonotic))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:image
|
2024-04-23 14:28:05 +00:00
|
|
|
(list #|image-viewers|# imv
|
|
|
|
#|ocr |# tesseract-ocr))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:messaging
|
2024-06-09 20:29:21 +00:00
|
|
|
(list #|telegram |# telegram-desktop))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:password
|
|
|
|
(list #|password-utils|# keepassxc))
|
|
|
|
|
|
|
|
(define packages:reading
|
2024-04-23 14:28:05 +00:00
|
|
|
(list #|gnome |# libnotify ; dependency for newsraft
|
|
|
|
#|pdf |# sioyek/wayland
|
2024-04-05 05:06:48 +00:00
|
|
|
#|syndication|# newsraft))
|
|
|
|
|
2024-06-16 17:49:30 +00:00
|
|
|
(define packages:scheme
|
2024-06-16 17:44:14 +00:00
|
|
|
(list #|guile-xyz|# guile-goblins guile-hoot guile-lib guile-srfi-197
|
|
|
|
guile-srfi-232))
|
2024-04-05 05:08:42 +00:00
|
|
|
|
2024-07-09 22:23:58 +00:00
|
|
|
(define packages:haskell
|
|
|
|
(list #|commencement|# gcc-toolchain
|
|
|
|
#|haskell |# ghc
|
|
|
|
#|haskell-xyz |# ghc-async ghc-base-prelude ghc-basement
|
|
|
|
ghc-basic-prelude ghc-chart ghc-groups))
|
|
|
|
|
2024-04-05 05:06:48 +00:00
|
|
|
(define packages:sound
|
2024-06-04 01:03:50 +00:00
|
|
|
(list #|linux |# wireplumber-minimal
|
2024-06-09 16:47:37 +00:00
|
|
|
#|pulseaudio|# pavucontrol))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:video
|
2024-06-09 16:49:23 +00:00
|
|
|
(list #|video|# ffmpeg mpv-minimal/wayland))
|
2024-04-05 05:06:48 +00:00
|
|
|
|
|
|
|
(define packages:web
|
2024-04-05 05:08:42 +00:00
|
|
|
(list #|chromium |# ungoogled-chromium/wayland
|
2024-05-26 04:12:09 +00:00
|
|
|
#|browser-extensions|# darkreader/chromium ublock-origin/chromium))
|
2024-04-05 05:08:42 +00:00
|
|
|
|
2024-03-08 14:32:05 +00:00
|
|
|
(define home-environment
|
|
|
|
(user-home-environment
|
|
|
|
(packages
|
2024-04-05 05:06:48 +00:00
|
|
|
(append #|B|# packages:blogging
|
|
|
|
#|C|# packages:calendar
|
|
|
|
#|D|# packages:databases packages:desktop packages:development
|
|
|
|
packages:documentation packages:downloads
|
2024-08-01 00:53:42 +00:00
|
|
|
#|E|# packages:emacs-xyz
|
2024-04-05 05:06:48 +00:00
|
|
|
#|F|# packages:file-managing packages:fonts
|
2024-04-08 04:03:52 +00:00
|
|
|
#|G|# packages:games
|
2024-07-09 22:23:58 +00:00
|
|
|
#|H|# packages:haskell
|
2024-04-05 05:06:48 +00:00
|
|
|
#|I|# packages:image
|
|
|
|
#|M|# packages:messaging
|
|
|
|
#|P|# packages:password
|
2024-04-05 05:08:42 +00:00
|
|
|
#|R|# packages:reading
|
|
|
|
#|S|# packages:scheme packages:sound
|
2024-04-05 05:06:48 +00:00
|
|
|
#|V|# packages:video
|
2024-04-26 21:38:29 +00:00
|
|
|
#|W|# packages:web))
|
2024-03-08 14:32:05 +00:00
|
|
|
|
|
|
|
(services
|
|
|
|
(list #|XDG services|#
|
|
|
|
(service home-xdg-user-directories-service-type
|
|
|
|
(home-xdg-user-directories-configuration
|
|
|
|
(desktop "$HOME/areas")
|
|
|
|
(documents "$HOME/areas/documents")
|
2024-07-18 02:23:00 +00:00
|
|
|
(download "$HOME/media/downloads")
|
2024-03-08 14:32:05 +00:00
|
|
|
(music "$HOME/media/music")
|
|
|
|
(pictures "$HOME/media/pictures")
|
|
|
|
(videos "$HOME/media/videos")
|
|
|
|
(publicshare "")
|
|
|
|
(templates "")))
|
|
|
|
|
|
|
|
(service home-xdg-mime-applications-service-type
|
|
|
|
(home-xdg-mime-applications-configuration
|
2024-03-26 20:21:58 +00:00
|
|
|
(desktop-entries
|
|
|
|
(list (xdg-desktop-entry
|
|
|
|
(name "foot")
|
|
|
|
(file "org.codeberg.dnkl.foot.desktop")
|
|
|
|
(type 'application)
|
|
|
|
(config `((exec . "foot")
|
|
|
|
(terminal . "true")
|
|
|
|
(exec-arg . "")
|
|
|
|
(startup-wm-class . "foot"))))))
|
2024-03-08 14:32:05 +00:00
|
|
|
(default (associate-right
|
2024-04-05 05:08:42 +00:00
|
|
|
('chromium.desktop
|
2024-03-27 01:39:35 +00:00
|
|
|
`("application/xhtml+xml"
|
2024-03-08 14:32:05 +00:00
|
|
|
"application/x-extension-htm"
|
|
|
|
"application/x-extension-xhtml"
|
|
|
|
"application/x-extension-xht"
|
|
|
|
"x-scheme-handler/http"
|
|
|
|
"x-scheme-handler/https"))
|
|
|
|
('kak.desktop
|
2024-03-27 01:39:35 +00:00
|
|
|
`("text/html"
|
|
|
|
"text/plain"
|
2024-03-08 14:32:05 +00:00
|
|
|
"text/troff"
|
|
|
|
"text/xml"
|
|
|
|
"text/x-c"
|
|
|
|
"text/x-c++"
|
2024-04-05 05:08:42 +00:00
|
|
|
"text/x-clojure"
|
2024-03-08 14:32:05 +00:00
|
|
|
"text/x-diff"
|
|
|
|
"text/x-lisp"
|
|
|
|
"text/x-scheme"
|
2024-04-05 05:08:42 +00:00
|
|
|
"text/x-script.python"
|
2024-03-08 14:32:05 +00:00
|
|
|
"text/x-shellscript"
|
|
|
|
"text/x-tex"))
|
|
|
|
('lf.desktop
|
|
|
|
`("inode/directory"
|
|
|
|
"x-scheme-handler/ftp"
|
|
|
|
"x-scheme-handler/nfs"
|
|
|
|
"x-scheme-handler/smb"
|
|
|
|
"x-scheme-handler/ssh"
|
|
|
|
"application/x-directory"))
|
|
|
|
('mpv.desktop
|
|
|
|
`("image/gif"
|
|
|
|
"audio/mpeg"
|
|
|
|
"audio/ogg"
|
|
|
|
"audio/opus"
|
|
|
|
"audio/x-opus+ogg"
|
|
|
|
"video/mp4"
|
|
|
|
"video/x-matroska"
|
|
|
|
"video/webm"))
|
|
|
|
('imv.desktop
|
|
|
|
`("image/avif"
|
|
|
|
"image/bmp"
|
|
|
|
"image/jpeg"
|
|
|
|
"image/png"
|
|
|
|
"image/svg+xml"
|
|
|
|
"image/webp"))
|
|
|
|
('sioyek.desktop
|
|
|
|
`("image/vnd.djvu"
|
|
|
|
"application/pdf"
|
|
|
|
"application/epub+zip"))))))
|
|
|
|
|
|
|
|
#|Dotfiles service|#
|
|
|
|
(service home-dotfiles-service-type
|
|
|
|
(home-dotfiles-configuration
|
|
|
|
(layout 'plain)
|
|
|
|
(directories `("radio/files"))))
|
|
|
|
|
|
|
|
#|Guix service|#
|
|
|
|
(simple-service 'home-extra-channels
|
|
|
|
home-channels-service-type
|
2024-04-23 14:28:05 +00:00
|
|
|
(list channel:guix
|
|
|
|
channel:radix))
|
2024-03-08 14:32:05 +00:00
|
|
|
|
|
|
|
#|Shepherd service|#
|
|
|
|
(service home-shepherd-service-type)
|
|
|
|
|
|
|
|
#|Shell services|#
|
|
|
|
(service home-fish-service-type
|
|
|
|
(home-fish-configuration
|
2024-07-05 18:28:05 +00:00
|
|
|
(plugins
|
|
|
|
(list fish-autopair
|
2024-07-07 02:15:58 +00:00
|
|
|
fish-done
|
2024-07-05 18:28:05 +00:00
|
|
|
fish-puffer))
|
2024-03-08 14:32:05 +00:00
|
|
|
(environment-variables
|
|
|
|
`(#|GNU Privacy Guard|#
|
|
|
|
("GPG_TTY" . "(tty)")
|
|
|
|
|
|
|
|
#|Remind|#
|
|
|
|
("DOTREMINDERS" . "$XDG_DATA_HOME/reminders")
|
|
|
|
|
|
|
|
#|GTK|#
|
|
|
|
("GTK_RC_FILES" . "$XDG_CONFIG_HOME/gtk-2.0/gtkrc")
|
|
|
|
|
|
|
|
#|Ncurses|#
|
2024-07-07 02:15:58 +00:00
|
|
|
("TERMINFO" . "$XDG_DATA_HOME/terminfo")
|
|
|
|
|
|
|
|
#|Plugins|#
|
|
|
|
("__done_allow_nongraphical" . "1")
|
2024-07-09 22:21:53 +00:00
|
|
|
("__done_exclude"
|
2024-07-09 22:56:39 +00:00
|
|
|
. ,(format #f "~{'^~a' ~}"
|
|
|
|
(list #|G|# "git" "guix (edit|repl|shell)"
|
|
|
|
#|K|# "kak"
|
|
|
|
#|L|# "lf"
|
|
|
|
#|M|# "mpv"
|
|
|
|
#|N|# "newsraft")))
|
2024-07-07 02:15:58 +00:00
|
|
|
("__done_notification_command"
|
|
|
|
. "notify-send '$title' '$message'")))
|
2024-03-08 14:32:05 +00:00
|
|
|
(aliases
|
|
|
|
`(#|Common aliases|#
|
|
|
|
("df" . "df -h")
|
|
|
|
("du" . "du -h")
|
|
|
|
("diff" . "diff --color=auto")
|
|
|
|
("grep" . "grep --color=auto")
|
|
|
|
("ip" . "ip --color=auto")
|
|
|
|
("ls" . ,(format #f "ls --color=auto ~
|
|
|
|
--group-directories-first ~
|
|
|
|
--classify ~
|
2024-04-23 14:28:05 +00:00
|
|
|
--human-readable ~
|
|
|
|
-v"))
|
2024-03-08 14:32:05 +00:00
|
|
|
|
|
|
|
#|Clear terminal screen without ncurses|#
|
|
|
|
("clear" . "printf \"\\033c\"")
|
|
|
|
|
|
|
|
#|Make ln idempotent|#
|
|
|
|
("ln" . "ln -sfn")
|
|
|
|
|
|
|
|
#|Kakoune bindings for info|#
|
|
|
|
("info" . "info --init-file $XDG_CONFIG_HOME/info")
|
|
|
|
|
|
|
|
#|Kakoune aliases for the shell|#
|
2024-04-05 05:08:42 +00:00
|
|
|
(":e" . "kak")
|
|
|
|
(":q" . "exit")))
|
2024-03-08 14:32:05 +00:00
|
|
|
(abbreviations
|
2024-03-09 14:02:49 +00:00
|
|
|
(let ((@ (symbol-prefix-proc '@))
|
|
|
|
(edit (partial format #f "$EDITOR~@{ ~a~}"))
|
|
|
|
(@radix (partial symbol-append '~/areas/code/scm/radix))
|
|
|
|
(@zero (partial symbol-append '~/areas/code/scm/zero)))
|
|
|
|
`(,@(map (match-lambda
|
|
|
|
((x . y) (abbreviation
|
|
|
|
(name (@ x))
|
|
|
|
(position 'anywhere)
|
|
|
|
(expansion (y x)))))
|
|
|
|
(associate-right
|
|
|
|
#|P.A.R.A.|#
|
|
|
|
((lambda (dir)
|
|
|
|
(cond ((equal? dir 'archive)
|
|
|
|
(symbol-append '~/. dir))
|
|
|
|
((equal? dir 'bookmarks)
|
|
|
|
(symbol-append '~/resources/ dir))
|
|
|
|
(else (symbol-append '~/ dir))))
|
|
|
|
'(areas bookmarks projects resources archive))
|
|
|
|
|
|
|
|
#|XDG user directories|#
|
|
|
|
((const (fish-function "xdg-user-directory"))
|
|
|
|
'(desktop documents download music pictures videos))
|
|
|
|
|
|
|
|
#|Code projects|#
|
|
|
|
((symbol-prefix-proc '~/projects/code/)
|
2024-08-01 00:54:12 +00:00
|
|
|
'(c clj cpp el hs html kak md pl scm sh tex zig))
|
2024-03-09 14:02:49 +00:00
|
|
|
|
|
|
|
#|Code areas|#
|
|
|
|
((symbol-prefix-proc '~/areas/code/scm/)
|
2024-06-16 17:45:15 +00:00
|
|
|
'(guile guix misako radix
|
|
|
|
riverguile saayix shepherd zero))
|
2024-03-09 14:02:49 +00:00
|
|
|
|
|
|
|
#|Radix|#
|
|
|
|
((partial @radix '/radix/)
|
|
|
|
'(packages services home/services))
|
|
|
|
|
|
|
|
#|Zero|#
|
|
|
|
((partial @zero '/operating-systems/)
|
2024-08-01 00:42:36 +00:00
|
|
|
'(buer buer/files buer/manifests))
|
2024-03-09 14:02:49 +00:00
|
|
|
((partial @zero '/home-environments/)
|
2024-08-01 00:42:36 +00:00
|
|
|
'(radio radio/files radio/packages radio/manifests))))
|
2024-03-09 14:02:49 +00:00
|
|
|
|
|
|
|
,@(map (match-lambda
|
|
|
|
((x . y) (abbreviation
|
|
|
|
(name x)
|
|
|
|
(expansion y))))
|
|
|
|
`(#|Download/Upload|#
|
|
|
|
(a . "aria2c -j 10 '%'")
|
|
|
|
(i . "ipfs get %")
|
2024-06-16 17:59:05 +00:00
|
|
|
(m . "yt-dlp -x '%'")
|
2024-03-26 20:21:58 +00:00
|
|
|
(u . "curl -F file=@% https://0x0.st | wl-copy")
|
2024-06-16 17:59:05 +00:00
|
|
|
(v . "yt-dlp '%'")))
|
2024-03-26 20:21:58 +00:00
|
|
|
|
2024-03-09 14:02:49 +00:00
|
|
|
,@(map (match-lambda
|
|
|
|
((x . y) (abbreviation
|
|
|
|
(name x)
|
|
|
|
(position 'anywhere)
|
|
|
|
(expansion y))))
|
2024-03-26 20:21:58 +00:00
|
|
|
`(#|Guix|#
|
2024-03-09 14:02:49 +00:00
|
|
|
(!dgen . "guix % delete-generations 2w")
|
|
|
|
(!repair . "doas guix build --repair")
|
|
|
|
(!pull . "guix pull")
|
|
|
|
(!home . "guix home reconfigure ~/.config/guix/home.scm")
|
|
|
|
(!system . "doas guix system reconfigure /etc/config.scm")
|
|
|
|
|
|
|
|
#|Processes|#
|
2024-08-01 00:32:10 +00:00
|
|
|
(tf . "setsid -f % >/dev/null 2>&1 & disown")
|
2024-03-09 14:02:49 +00:00
|
|
|
|
|
|
|
#|Quick edit|#
|
|
|
|
(:e . ,(edit))
|
|
|
|
(:system . ,(edit "/etc/config.scm"))
|
|
|
|
(:home . ,(edit "~/.config/guix/home.scm"))
|
|
|
|
(:todo . ,(edit "~/areas/meta/todo")))))))))
|
2024-03-08 14:32:05 +00:00
|
|
|
|
|
|
|
#|Environment variables services|#
|
2024-03-26 20:21:58 +00:00
|
|
|
(simple-service 'home-shell-environment-variables
|
2024-03-08 14:32:05 +00:00
|
|
|
home-environment-variables-service-type
|
|
|
|
`(("PATH" . "$HOME/.local/bin:$PATH")
|
2024-05-05 17:38:18 +00:00
|
|
|
("INPUTRC" . "$XDG_CONFIG_HOME/readline/inputrc")))
|
2024-03-26 20:21:58 +00:00
|
|
|
(simple-service 'home-guile-environment-variables
|
2024-03-08 14:32:05 +00:00
|
|
|
home-environment-variables-service-type
|
|
|
|
`(("GUILE_WARN_DEPRECATED" . "detailed")
|
|
|
|
("GUILE_HISTORY" . "$XDG_CACHE_HOME/guile/history")
|
|
|
|
("GUILE_LOAD_PATH"
|
|
|
|
. ,(format #f "~?~?"
|
|
|
|
"~@{:$HOME/areas/code/scm/~a~}"
|
2024-03-20 06:42:12 +00:00
|
|
|
'(radix
|
2024-03-09 14:02:49 +00:00
|
|
|
zero
|
|
|
|
zero/operating-systems
|
|
|
|
zero/home-environments)
|
2024-03-08 14:32:05 +00:00
|
|
|
"~@{:~a/share/guile/site/3.0~}"
|
|
|
|
'($HOME/.guix-home/profile
|
|
|
|
$XDG_CONFIG_HOME/guix/current
|
2024-08-01 00:31:25 +00:00
|
|
|
/run/current-system/profile)))
|
|
|
|
("GUILE_LOAD_COMPILED_PATH"
|
|
|
|
. ,(apply format #f "~a~@{:~a~}"
|
|
|
|
(flat-map (lambda (profile path)
|
|
|
|
(format #f "~a/~a" profile path))
|
|
|
|
'($HOME/.guix-home/profile
|
|
|
|
/run/current-system/profile)
|
|
|
|
'(lib/guile/3.0/site-ccache
|
|
|
|
share/guile/site/3.0))))))
|
2024-03-26 20:21:58 +00:00
|
|
|
(simple-service 'home-wayland-environment-variables
|
|
|
|
home-environment-variables-service-type
|
|
|
|
`(("QT_QPA_PLATFORM" . "wayland;xcb")
|
|
|
|
("QT_WAYLAND_DISABLE_WINDOWDECORATION" . "1")))
|
|
|
|
(simple-service 'home-language-environment-variables
|
2024-03-08 14:32:05 +00:00
|
|
|
home-environment-variables-service-type
|
|
|
|
`(("LANG" . "en_US.UTF-8")
|
|
|
|
("LANGUAGE" . "en_US.UTF-8")
|
|
|
|
("LC_COLLATE" . "C")))
|
2024-03-26 20:21:58 +00:00
|
|
|
(simple-service 'home-default-applications-environment-variables
|
2024-03-08 14:32:05 +00:00
|
|
|
home-environment-variables-service-type
|
2024-04-05 05:06:48 +00:00
|
|
|
`(("BROWSER" . ,application:browser)
|
|
|
|
("EDITOR" . ,application:editor)
|
|
|
|
("PAGER" . ,application:pager)
|
|
|
|
("READER" . ,application:reader)
|
|
|
|
("TERMINAL" . ,application:terminal)
|
|
|
|
("VISUAL" . ,application:editor)
|
|
|
|
("WM" . ,application:wm)))
|
2024-03-08 14:32:05 +00:00
|
|
|
|
|
|
|
#|SSH service|#
|
|
|
|
(service home-openssh-service-type
|
|
|
|
(home-openssh-configuration
|
|
|
|
(hosts (list (openssh-host
|
|
|
|
(name "codeberg.org")
|
|
|
|
(host-name "codeberg.org")
|
|
|
|
(user "git")
|
|
|
|
(identity-file "~/.ssh/codeberg"))
|
|
|
|
(openssh-host
|
|
|
|
(name "github.com")
|
|
|
|
(host-name "github.com")
|
|
|
|
(user "git")
|
2024-05-26 04:18:22 +00:00
|
|
|
(identity-file "~/.ssh/github"))
|
|
|
|
(openssh-host
|
|
|
|
(name "git.sr.ht")
|
|
|
|
(host-name "git.sr.ht")
|
|
|
|
(user "git")
|
|
|
|
(identity-file "~/.ssh/srht"))))
|
2024-03-08 14:32:05 +00:00
|
|
|
(authorized-keys #f)))
|
|
|
|
|
|
|
|
#|GPG agent service|#
|
|
|
|
(service home-gpg-agent-service-type
|
|
|
|
(home-gpg-agent-configuration
|
|
|
|
(gnupghome ".local/share/gnupg")
|
|
|
|
(pinentry-program
|
|
|
|
(file-append pinentry "/bin/pinentry-curses"))))
|
|
|
|
|
|
|
|
#|Session services|#
|
|
|
|
(service home-dbus-service-type)
|
|
|
|
|
|
|
|
#|Sound services|#
|
2024-04-05 05:08:42 +00:00
|
|
|
(service home-pipewire-service-type
|
|
|
|
(home-pipewire-configuration
|
|
|
|
(wireplumber wireplumber-minimal)))
|
2024-03-08 14:32:05 +00:00
|
|
|
|
2024-03-20 06:42:12 +00:00
|
|
|
#|Battery services|#
|
|
|
|
(service home-batsignal-service-type
|
|
|
|
(home-batsignal-configuration
|
|
|
|
(poll-delay 15)
|
|
|
|
(full-level 90)
|
|
|
|
(warning-level 70)
|
|
|
|
(critical-level 30)
|
|
|
|
(full-message "Unplug the cable.")
|
|
|
|
(warning-message "You may want to plug the cable.")
|
2024-04-26 21:38:29 +00:00
|
|
|
(critical-message "Plug the cable.")))))))
|
2024-03-08 14:32:05 +00:00
|
|
|
home-environment
|