modern_lisp-machine/home-configuration/home-configuration.scm

393 lines
13 KiB
Scheme
Raw Normal View History

2024-02-18 02:56:06 +00:00
;; This "home-environment" file can be passed to 'guix home reconfigure'
;; to reproduce the content of your profile. This is "symbolic": it only
;; specifies package names. To reproduce the exact same profile, you also
;; need to capture the channels being used, as returned by "guix describe".
;; See the "Replicating Guix" section in the manual.
(use-modules (gnu home)
2024-09-08 20:03:55 +00:00
(radix packages)
(radix packages image-viewers)
2024-06-01 05:00:40 +00:00
(gnu home services desktop)
2024-02-18 02:56:06 +00:00
(gnu packages)
(gnu services)
2024-06-01 05:00:40 +00:00
(gnu packages java)
(gnu packages librewolf)
(gnu packages guile-xyz)
2024-03-02 19:12:23 +00:00
(gnu packages haskell)
2024-06-01 05:00:40 +00:00
(gnu packages gimp)
(gnu packages ebook)
2024-03-06 13:46:35 +00:00
(gnu home services syncthing)
(gnu packages tor)
2024-09-08 20:03:55 +00:00
(gnu packages sync)
(gnu packages package-management)
2024-03-06 13:46:35 +00:00
(gnu packages syncthing)
2024-02-18 02:56:06 +00:00
(guix gexp)
(gnu packages rust-apps)
2024-03-01 23:49:21 +00:00
(gnu home services)
(gnu home services shells)
(gnu home services fontutils)
(gnu home services xdg)
(gnu packages image)
(gnu packages mpd)
(gnu packages disk)
(gnu packages emacs-xyz)
(gnu packages text-editors)
(gnu packages xfce)
(gnu packages image-viewers)
(gnu packages gnupg)
(gnu packages freedesktop)
(gnu packages fonts)
(gnu packages qt)
(gnu packages mail)
(gnu packages compression)
(gnu packages xml)
(gnu packages bittorrent)
(gnu packages xorg)
(gnu packages gstreamer)
(gnu packages xdisorg)
(gnu packages video)
(gnu packages emulators)
(gnu packages web-browsers)
(gnu packages tmux)
(gnu packages terminals)
(gnu packages linux)
(gnu packages python)
(gnu packages cmake)
(gnu packages readline)
(gnu packages curl)
(gnu packages pdf)
(gnu packages glib)
(gnu packages admin)
(gnu packages lisp-xyz)
(gnu packages wm)
(gnu packages compton)
(gnu packages lisp)
(gnu packages music)
(gnu packages version-control)
(gnu packages lxqt)
(gnu packages emacs)
(srfi srfi-26))
2024-03-01 23:49:21 +00:00
2024-06-01 05:00:40 +00:00
2024-03-01 23:49:21 +00:00
(define fontconfig
'(fontconfig
(comment " Set subpixel arrangement for all fonts ")
(match ((target "font")
2024-07-02 15:04:48 +00:00
(edit (@ (name "rgba") (mode "assign"))
2024-03-01 23:49:21 +00:00
(const "bgr"))
2024-07-02 15:04:48 +00:00
(edit (@ (name "hrgba") (mode "assign"))
2024-03-01 23:49:21 +00:00
(const "bgr"))
2024-07-02 15:04:48 +00:00
(edit (@ (name "hinting") (mode "assign"))
2024-03-01 23:49:21 +00:00
(bool "true")))
2024-03-06 13:46:35 +00:00
2024-07-02 15:04:48 +00:00
(comment " Alias for Migu 1P font ")
2024-03-06 13:46:35 +00:00
(alias ((family "sans-serif")
2024-07-02 15:04:48 +00:00
(prefer (family "Migu 1P")))))))
2024-02-18 02:56:06 +00:00
(define-syntax-rule
(associate-right (association keys) ...)
`(,@(map (cut cons <> association) keys) ...))
2024-02-18 02:56:06 +00:00
(home-environment
2024-03-06 13:46:35 +00:00
(packages (cons* flameshot
ncmpcpp
;; gd-tools
wmctrl
lf
ranger
emacs-org-roam
guile-ares-rs
emacs-arei
;; multimonitor
xset
2024-06-01 05:00:40 +00:00
librewolf
arandr
2024-03-06 13:46:35 +00:00
;;
;;
;;
;; sselp
syncthing
nano
2024-06-01 05:00:40 +00:00
gimp
2024-03-06 13:46:35 +00:00
thunar
2024-06-01 05:00:40 +00:00
net-tools
2024-03-06 13:46:35 +00:00
mcomix
pinentry
;; goldendict-ng
xdg-utils
font-google-material-design-icons
gst-plugins-good-qt
;;unrar
qtmultimedia
sylpheed
2024-09-08 20:03:55 +00:00
zpaq
2024-03-06 13:46:35 +00:00
;; xpad-module
unzip
zip
emacs-esxml
html-xml-utils
emacs-rainbow-delimiters
aria2
xdg-desktop-portal
xdg-desktop-portal-gtk
gnupg
xprop
;;nicotine+
2024-09-08 20:03:55 +00:00
nextcloud-client
2024-03-06 13:46:35 +00:00
yt-dlp
higan
2024-06-01 05:00:40 +00:00
librewolf
2024-03-06 13:46:35 +00:00
nyxt
2024-06-01 05:00:40 +00:00
sbcl-coleslaw
2024-03-06 13:46:35 +00:00
emacs-nyxt
tmux
alacritty
lm-sensors
;; anki
ripgrep
2024-03-06 13:46:35 +00:00
emacs-olivetti
emacs-deadgrep
emacs-rg
emacs-dumb-jump
2024-03-01 23:49:21 +00:00
;; foliate
2024-03-06 13:46:35 +00:00
emacs-slime
python
xrdb
dbus
2024-03-01 23:49:21 +00:00
;; steam
;; make
2024-03-06 13:46:35 +00:00
p7zip
tor-client
cmake
2024-03-01 23:49:21 +00:00
;;
2024-03-06 13:46:35 +00:00
emacs-dirvish
readline
curl
2024-06-01 05:00:40 +00:00
librewolf
2024-03-06 13:46:35 +00:00
qpdfview
xclip
emacs-nerd-icons
emacs-telega
;; anki
flatpak
flatpak-xdg-utils
;;----
2024-03-06 13:46:35 +00:00
htop
cl-clx
2024-06-01 05:00:40 +00:00
openjdk
2024-03-06 13:46:35 +00:00
neofetch
kitty
picom
calibre
2024-03-06 13:46:35 +00:00
feh
xsel
2024-03-06 13:46:35 +00:00
rofi
sbcl
cmus
;; xmonad
xmonad
ghc
xmobar
ghc-xmonad-contrib
;;-----------------
zstd
;; suckless-dictpopup
scrot
cl-css
git
gst-plugins-good
gst-plugins-bad
gstreamer
pavucontrol-qt
mpv
emacs
2024-09-08 20:03:55 +00:00
ueberzug++
2024-03-06 13:46:35 +00:00
(specifications->packages
(list "steam"
"guile"
2024-09-08 20:03:55 +00:00
;; "ueberzug++"
2024-03-06 13:46:35 +00:00
"fcitx5-gtk4"
"fcitx5-qt"
"fcitx5-gtk"
2024-06-01 05:00:40 +00:00
"navidrome-bin"
"torbrowser"
2024-03-06 13:46:35 +00:00
"unrar"
"nicotine+"
2024-06-01 05:00:40 +00:00
"librewolf"
2024-09-08 20:03:55 +00:00
"zpaq"
2024-06-01 05:00:40 +00:00
"gimp"
2024-03-06 13:46:35 +00:00
"foliate"
"tor-client"
2024-03-06 13:46:35 +00:00
"make"
"element-desktop"
"font-apple-color-emoji"))))
2024-02-18 02:56:06 +00:00
2024-03-06 13:46:35 +00:00
;; Below is the list of Home services. To search for available
;; services, run 'guix home search KEYWORD' in a terminal.
(services
(list (service home-bash-service-type
(home-bash-configuration
(aliases '(("analyze_video" . "~/.local/bin/analyze_video.sh")
("ct" . "~/.local/bin/compatibility.sh")
("grep" . "grep --color=auto")
2024-06-01 05:00:40 +00:00
("update" . "guix pull && sudo guix system reconfigure .config/guix/config.scm")
2024-03-06 13:46:35 +00:00
("lf" . "~/.local/bin/lf/lfrun")
2024-09-08 20:03:55 +00:00
("ps2" . "nohup flatpak run --filesystem=/mnt/Data net.pcsx2.PCSX2 > /dev/null 2>&1 &")
("ocr" . "sudo /nix/var/nix/profiles/default/bin/manga_ocr")
2024-03-06 13:46:35 +00:00
("ll" . "ls -l")
("ls" . "ls -p --color=auto")
2024-06-01 05:00:40 +00:00
("run_code" . "g++ -o main main.cc -Ofast -std=c++23 -s -flto -march=native -I ~/dev/ajatt/hakurei/include/ && ./main")
("rgf" . "rg --files | rg")
2024-09-08 20:03:55 +00:00
("dufh" . "/nix/var/nix/profiles/default/bin/duf -hide-fs tmpfs,ext4,devtmpfs,vfat")
("mpv" . "mpv --audio-pitch-correction=yes --vf=setpts=PTS/1")
2024-06-01 05:00:40 +00:00
("record" . "ffmpeg -f x11grab -r 23 -s 1366x768 -i $DISPLAY -f pulse -i nui_mic_remap -filter_complex '[1:a]volume=2.0[a]' -map 0:v -map '[a]' -c:v libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -y /tmp/output.mp4")
("isolate" . "guix shell --container --network --preserve='^DISPLAY$' \
2024-06-01 05:00:40 +00:00
--preserve='^XAUTHORITY$' --expose=$XAUTHORITY --expose=/etc/ssl/certs --no-cwd ")))
2024-03-06 13:46:35 +00:00
(bashrc (list (local-file
"/home/hashirama/src/guix-config/.bashrc"
"bashrc")))
(bash-profile (list (local-file
"/home/hashirama/src/guix-config/.bash_profile"
"bash_profile")))
2024-06-01 05:00:40 +00:00
(environment-variables
2024-03-06 13:46:35 +00:00
'(
2024-06-01 05:00:40 +00:00
("GTK_IM_MODULE"
. "fcitx")
("QT_IM_MODULE"
. "fcitx")
("GUIX_GTK2_IM_MODULE_FILE"
. "/run/current-system/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
("GUIX_GTK3_IM_MODULE_FILE"
. "/run/current-system/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")
("XMODIFIERS=@im="
. "fcitx")
("INPUT_METHOD"
. "fcitx")
("XIM_PROGRAM"
. "fcitx")
("GLFW_IM_MODULE"
. "ibus")
2024-03-06 13:46:35 +00:00
("GUILE_LOAD_PATH"
. "$HOME/dev/guix_channel/ajatt-tools-guix:$GUILE_LOAD_PATH")
("XMONAD_CONFIG_DIR"
. "$HOME/.xmonad")
("GUIX_PROFILE=$HOME/.config/guix/current"
. "$GUIX_PROFILE/etc/profile")
2024-03-06 13:46:35 +00:00
))
))
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
(service home-syncthing-service-type
(for-home
(syncthing-configuration
(user "hashirama"))))
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
(service home-xdg-mime-applications-service-type
(home-xdg-mime-applications-configuration
(default (associate-right
2024-06-01 05:00:40 +00:00
('librewolf.desktop
2024-03-06 13:46:35 +00:00
`("text/html"
"application/xhtml+xml"
"application/x-extension-htm"
"application/x-extension-xhtml"
"application/x-extension-xht"
"x-scheme-handler/http"
"x-scheme-handler/https"))
('emacs.desktop
`("text/plain"
"text/troff"
"text/xml"
"text/x-c"
"text/x-c++"
"text/x-diff"
"text/x-lisp"
"text/x-scheme"
"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"
2024-06-01 05:00:40 +00:00
"audio/flac"
2024-03-06 13:46:35 +00:00
"video/mp4"
2024-06-01 05:00:40 +00:00
"application/octet-stream"
"video/mp2t"
2024-03-06 13:46:35 +00:00
"video/x-matroska"
"video/webm"))
('nsxiv.desktop
`("image/avif"
"image/bmp"
"image/jpeg"
"image/png"
"image/svg+xml"
"image/webp"))
('emacs.desktop
`("image/vnd.djvu"))
('foliate.desktop
`("application/epub+zip"))
('sioyek.desktop
`("application/pdf"))
))))
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
(simple-service 'font-antialias
home-fontconfig-service-type
(list "~/.local/share/fonts" fontconfig))
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
(simple-service 'bash-fancy-prompt
home-bash-service-type
(home-bash-extension
(environment-variables
'(("PS1" . "\\u \\wλ ")))))
(simple-service 'environment-variables-service
home-environment-variables-service-type
`(#|Shells|#
("PATH" . "$HOME/.local/bin:$PATH")
("XINITRC" . "$XDG_CONFIG_HOME/.xinitrc")
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
#|Guile|#
("GUILE_WARN_DEPRECATED" . "detailed")
("GUILE_LOAD_PATH"
. "$HOME/dev/guix_channel/ajatt-tools-guix:$GUILE_LOAD_PATH")
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
#|IME|#
("GTK_IM_MODULE" . "fcitx")
("QT_IM_MODULE" . "fcitx")
("XMODIFIERS" . "@im=fctix")
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
#|Dictionary|#
("STARDICT_DATA_DIR" . "/mnt/Data/Japanese_Resources/languages-study(japanesAndRussian)/dicts/stardict/being_used")
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
#|Language|#
("LANG" . "en_US.UTF-8")
("LANGUAGE" . "en_US.UTF-8")
("LC_COLLATE" . "C")
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
#|Default applications|#
("BROWSER" . "nyxt")
("EDITOR" . "emacs")
("FCEDIT" . "emacs")
("PAGER" . "less")
("READER" . "foliate")
2024-03-06 13:46:35 +00:00
("SHELL" . "bash")
("TERMINAL" . "alacritty")
("VISUAL" . "nsxiv")
2024-03-06 13:46:35 +00:00
("WM" . "xmonad")))))
2024-03-01 23:49:21 +00:00
2024-03-06 13:46:35 +00:00
)