From 46e4068e1af8a3eee177da7dc921c822bfef2fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E4=BD=8F=E6=9F=B1=E9=96=93?= Date: Wed, 6 Mar 2024 13:46:35 +0000 Subject: [PATCH] add syncthing service --- home-configuration/home-configuration.scm | 476 +++++++++++----------- 1 file changed, 241 insertions(+), 235 deletions(-) diff --git a/home-configuration/home-configuration.scm b/home-configuration/home-configuration.scm index 22c697e..909cd6b 100644 --- a/home-configuration/home-configuration.scm +++ b/home-configuration/home-configuration.scm @@ -8,6 +8,8 @@ (gnu packages) (gnu services) (gnu packages haskell) + (gnu home services syncthing) + (gnu packages syncthing) (guix gexp) (radix utils) (gnu home services) @@ -64,256 +66,260 @@ (const "bgr")) (edit ((name "hinting") (mode "assign")) (bool "true"))) - - (comment " Alias for Motomachi font ") - (alias ((family "sans-serif") - (prefer (family "Motomachi"))))))) + + (comment " Alias for Motomachi font ") + (alias ((family "sans-serif") + (prefer (family "Motomachi"))))))) (home-environment - (packages (cons* flameshot - ncmpcpp - ;; gd-tools - wmctrl - lf - ranger - emacs-org-roam - ;; - ;; - ;; - ;; sselp - nano - thunar - mcomix - pinentry - ;; goldendict-ng - xdg-utils - font-google-material-design-icons - gst-plugins-good-qt - ;;unrar - qtmultimedia - sylpheed - ;; xpad-module - unzip - zip - emacs-esxml - html-xml-utils - emacs-rainbow-delimiters - aria2 - xdg-desktop-portal - xdg-desktop-portal-gtk - gnupg - xprop - ;;nicotine+ - yt-dlp - higan - nyxt - emacs-nyxt - tmux - alacritty - lm-sensors - ;; anki - emacs-olivetti + (packages (cons* flameshot + ncmpcpp + ;; gd-tools + wmctrl + lf + ranger + emacs-org-roam + ;; + ;; + ;; + ;; sselp + syncthing + nano + thunar + mcomix + pinentry + ;; goldendict-ng + xdg-utils + font-google-material-design-icons + gst-plugins-good-qt + ;;unrar + qtmultimedia + sylpheed + ;; xpad-module + unzip + zip + emacs-esxml + html-xml-utils + emacs-rainbow-delimiters + aria2 + xdg-desktop-portal + xdg-desktop-portal-gtk + gnupg + xprop + ;;nicotine+ + yt-dlp + higan + nyxt + emacs-nyxt + tmux + alacritty + lm-sensors + ;; anki + emacs-olivetti ;; foliate - emacs-slime - python - xrdb - dbus + emacs-slime + python + xrdb + dbus ;; steam ;; make - p7zip - cmake + p7zip + cmake ;; - emacs-dirvish - readline - curl - qpdfview - xclip - emacs-nerd-icons - emacs-telega - htop - cl-clx - neofetch - kitty - sbcl-stumpwm-ttf-fonts - cl-clx-truetype - picom - feh - xmodmap - rofi - sbcl - stumpwm `(,stumpwm "lib") - emacs-stumpwm-mode - sbcl-stumpwm-net - sbcl-stumpwm-cpu - sbcl-stumpwm-mem - sbcl-stumpwm-disk - sbcl-stumpwm-screenshot - sbcl-stumpwm-pamixer - sbcl-clx - sbcl-stumpwm-swm-gaps - 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 - (specifications->packages - (list "steam" - "guile" - "ueberzug++" - "fcitx5-gtk4" - "fcitx5-qt" - "ungoogled-chromium" - "fcitx5-gtk" - "unrar" - "nicotine+" - "foliate" - "make" - "element-desktop" - "font-apple-color-emoji")))) + emacs-dirvish + readline + curl + qpdfview + xclip + emacs-nerd-icons + emacs-telega + htop + cl-clx + neofetch + kitty + sbcl-stumpwm-ttf-fonts + cl-clx-truetype + picom + feh + xmodmap + rofi + sbcl + stumpwm `(,stumpwm "lib") + emacs-stumpwm-mode + sbcl-stumpwm-net + sbcl-stumpwm-cpu + sbcl-stumpwm-mem + sbcl-stumpwm-disk + sbcl-stumpwm-screenshot + sbcl-stumpwm-pamixer + sbcl-clx + sbcl-stumpwm-swm-gaps + 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 + (specifications->packages + (list "steam" + "guile" + "ueberzug++" + "fcitx5-gtk4" + "fcitx5-qt" + "ungoogled-chromium" + "fcitx5-gtk" + "unrar" + "nicotine+" + "foliate" + "make" + "element-desktop" + "font-apple-color-emoji")))) - ;; 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") - ("lf" . "~/.local/bin/lf/lfrun") - ("ll" . "ls -l") - ("ls" . "ls -p --color=auto") - ("record" . "ffmpeg -f x11grab -r 25 -s 1366x768 -i $DISPLAY -c:v libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -y /tmp/output.mp4") - ("revive" . "xmodmap -e '\\''clear mod4'\\'' && xmodmap -e '\\''keycode 133 = F20'\\''"))) - (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"))) - (environment-variables - '( - ("GUILE_LOAD_PATH" - . "$HOME/dev/guix_channel/ajatt-tools-guix:$GUILE_LOAD_PATH") - ("XMONAD_CONFIG_DIR" - . "$HOME/.xmonad") - )) - )) + ;; 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") + ("lf" . "~/.local/bin/lf/lfrun") + ("ll" . "ls -l") + ("ls" . "ls -p --color=auto") + ("record" . "ffmpeg -f x11grab -r 25 -s 1366x768 -i $DISPLAY -c:v libx264 -pix_fmt yuv420p -preset ultrafast -crf 23 -y /tmp/output.mp4") + ("revive" . "xmodmap -e '\\''clear mod4'\\'' && xmodmap -e '\\''keycode 133 = F20'\\''"))) + (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"))) + (environment-variables + '( + ("GUILE_LOAD_PATH" + . "$HOME/dev/guix_channel/ajatt-tools-guix:$GUILE_LOAD_PATH") + ("XMONAD_CONFIG_DIR" + . "$HOME/.xmonad") + )) + )) - + (service home-syncthing-service-type + (for-home + (syncthing-configuration + (user "hashirama")))) - - (service home-xdg-mime-applications-service-type - (home-xdg-mime-applications-configuration - (default (associate-right - ('nyxt.desktop - `("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" - "audio/flac" - "video/mp4" - "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")) - )))) + + (service home-xdg-mime-applications-service-type + (home-xdg-mime-applications-configuration + (default (associate-right + ('nyxt.desktop + `("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" + "audio/flac" + "video/mp4" + "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")) + )))) - (simple-service 'font-antialias - home-fontconfig-service-type - (list "~/.local/share/fonts" fontconfig)) + (simple-service 'font-antialias + home-fontconfig-service-type + (list "~/.local/share/fonts" fontconfig)) - (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") + (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") - #|Guile|# - ("GUILE_WARN_DEPRECATED" . "detailed") - ("GUILE_LOAD_PATH" - . "$HOME/dev/guix_channel/ajatt-tools-guix:$GUILE_LOAD_PATH") + #|Guile|# + ("GUILE_WARN_DEPRECATED" . "detailed") + ("GUILE_LOAD_PATH" + . "$HOME/dev/guix_channel/ajatt-tools-guix:$GUILE_LOAD_PATH") - #|IME|# - ("GTK_IM_MODULE" . "fcitx") - ("QT_IM_MODULE" . "fcitx") - ("XMODIFIERS" . "@im=fctix") + #|IME|# + ("GTK_IM_MODULE" . "fcitx") + ("QT_IM_MODULE" . "fcitx") + ("XMODIFIERS" . "@im=fctix") - #|Dictionary|# - ("STARDICT_DATA_DIR" . "/mnt/Data/Japanese_Resources/languages-study(japanesAndRussian)/dicts/stardict/being_used") + #|Dictionary|# + ("STARDICT_DATA_DIR" . "/mnt/Data/Japanese_Resources/languages-study(japanesAndRussian)/dicts/stardict/being_used") - - #|Language|# - ("LANG" . "en_US.UTF-8") - ("LANGUAGE" . "en_US.UTF-8") - ("LC_COLLATE" . "C") + + #|Language|# + ("LANG" . "en_US.UTF-8") + ("LANGUAGE" . "en_US.UTF-8") + ("LC_COLLATE" . "C") - #|Default applications|# - ("BROWSER" . "nyxt") - ("EDITOR" . "emacs") - ("FCEDIT" . "emacs") - ("PAGER" . "less") - ("READER" . "emacs") - ("SHELL" . "bash") - ("TERMINAL" . "kitty") - ("VISUAL" . "emacs") - ("WM" . "xmonad"))))) + #|Default applications|# + ("BROWSER" . "nyxt") + ("EDITOR" . "emacs") + ("FCEDIT" . "emacs") + ("PAGER" . "less") + ("READER" . "emacs") + ("SHELL" . "bash") + ("TERMINAL" . "kitty") + ("VISUAL" . "emacs") + ("WM" . "xmonad"))))) - ) + )