mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-07-09 09:55:29 +00:00
Compare commits
No commits in common. "7f429bcc77680dc0d4abae6cc6190f7667264944" and "fc9b7def0e832e56a018c02f40821d36016c85b5" have entirely different histories.
7f429bcc77
...
fc9b7def0e
@ -52,9 +52,7 @@
|
|||||||
(eval . (put 'cuirass-worker-container-configuration 'scheme-indent-function 0))
|
(eval . (put 'cuirass-worker-container-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'docker-mailserver-configuration 'scheme-indent-function 0))
|
(eval . (put 'docker-mailserver-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'forgejo-configuration 'scheme-indent-function 0))
|
(eval . (put 'forgejo-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'home-atuin-configuration 'scheme-indent-function 0))
|
|
||||||
(eval . (put 'home-blueman-applet-configuration 'scheme-indent-function 0))
|
(eval . (put 'home-blueman-applet-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'home-direnv-configuration 'scheme-indent-function 0))
|
|
||||||
(eval . (put 'home-fcitx5-configuration 'scheme-indent-function 0))
|
(eval . (put 'home-fcitx5-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'home-mako-configuration 'scheme-indent-function 0))
|
(eval . (put 'home-mako-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'home-network-manager-applet-configuration 'scheme-indent-function 0))
|
(eval . (put 'home-network-manager-applet-configuration 'scheme-indent-function 0))
|
||||||
@ -66,7 +64,6 @@
|
|||||||
(eval . (put 'home-theme-configuration 'scheme-indent-function 0))
|
(eval . (put 'home-theme-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'home-wakapi-configuration 'scheme-indent-function 0))
|
(eval . (put 'home-wakapi-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'home-waybar-configuration 'scheme-indent-function 0))
|
(eval . (put 'home-waybar-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'home-zoxide-configuration 'scheme-indent-function 0))
|
|
||||||
(eval . (put 'iwd-configuration 'scheme-indent-function 0))
|
(eval . (put 'iwd-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'jellyfin-configuration 'scheme-indent-function 0))
|
(eval . (put 'jellyfin-configuration 'scheme-indent-function 0))
|
||||||
(eval . (put 'komga-configuration 'scheme-indent-function 0))
|
(eval . (put 'komga-configuration 'scheme-indent-function 0))
|
||||||
|
@ -5,14 +5,18 @@
|
|||||||
|
|
||||||
;; TODO:
|
;; TODO:
|
||||||
;; 1. Configure geiser. Take a look at guile-studio.
|
;; 1. Configure geiser. Take a look at guile-studio.
|
||||||
;; 2. Make use of `guix:' comments.
|
;; 2. Make use of ‘guix:’ comments.
|
||||||
|
|
||||||
|
;;;
|
||||||
|
;;; Init
|
||||||
|
;;;
|
||||||
|
|
||||||
(setopt custom-file (locate-user-emacs-file "custom.el"))
|
(setopt custom-file (locate-user-emacs-file "custom.el"))
|
||||||
(if (not (file-exists-p custom-file))
|
(if (not (file-exists-p custom-file))
|
||||||
(make-empty-file custom-file)
|
(make-empty-file custom-file)
|
||||||
(load custom-file))
|
(load custom-file))
|
||||||
|
|
||||||
(load-file (locate-user-emacs-file "$$fonts.el$$"))
|
(load-file (locate-user-emacs-file "fonts.el"))
|
||||||
|
|
||||||
;; Tweak garbage collection strategy.
|
;; Tweak garbage collection strategy.
|
||||||
;;guix:emacs-gcmh
|
;;guix:emacs-gcmh
|
||||||
@ -28,10 +32,8 @@
|
|||||||
|
|
||||||
(use-package emacs
|
(use-package emacs
|
||||||
:custom
|
:custom
|
||||||
;; Workaround to use fish as login shell.
|
(shell-file-name "/bin/sh") ;Workaround to use fish as login shell.
|
||||||
(shell-file-name "/bin/sh")
|
(word-wrap-by-category t)) ;CJK support.
|
||||||
;; CJK support.
|
|
||||||
(word-wrap-by-category t))
|
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
@ -165,7 +167,7 @@
|
|||||||
;; Disable tab indentation.
|
;; Disable tab indentation.
|
||||||
(indent-tabs-mode nil)
|
(indent-tabs-mode nil)
|
||||||
:config
|
:config
|
||||||
;; Avoid re-indenting current line after entering `RET'.
|
;; Avoid re-indenting current line after entering ‘RET’.
|
||||||
(setopt electric-indent-inhibit t)
|
(setopt electric-indent-inhibit t)
|
||||||
:hook
|
:hook
|
||||||
(before-save . delete-trailing-whitespace)
|
(before-save . delete-trailing-whitespace)
|
||||||
@ -215,9 +217,7 @@
|
|||||||
;;guix:emacs-magit
|
;;guix:emacs-magit
|
||||||
(use-package magit
|
(use-package magit
|
||||||
:custom
|
:custom
|
||||||
(git-commit-cd-to-toplevel t))
|
(git-commit-cd-to-toplevel t)
|
||||||
|
|
||||||
(use-package project
|
|
||||||
:config
|
:config
|
||||||
(add-to-list 'project-switch-commands '(magit-project-status "Magit") t)
|
(add-to-list 'project-switch-commands '(magit-project-status "Magit") t)
|
||||||
:bind
|
:bind
|
||||||
|
@ -2,9 +2,8 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
font=monospace 11
|
|
||||||
text-color=#13181B
|
|
||||||
background-color=#D2DEE9E0
|
background-color=#D2DEE9E0
|
||||||
border-size=1
|
border-color=#D2DEE9
|
||||||
border-color=#B3C6D3
|
text-color=#13181B
|
||||||
border-radius=5
|
border-radius=5
|
||||||
|
font=monospace 11
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
|
|
||||||
#:use-module (rosenthal packages xorg)
|
#:use-module (rosenthal packages xorg)
|
||||||
|
|
||||||
#:export (%rosenthal-example-emacs-init
|
#:export (%rosenthal-example-emacs-fonts
|
||||||
|
%rosenthal-example-emacs-init
|
||||||
|
|
||||||
home-blueman-applet-configuration
|
home-blueman-applet-configuration
|
||||||
home-blueman-applet-service-type
|
home-blueman-applet-service-type
|
||||||
@ -64,10 +65,11 @@
|
|||||||
;;; Configuration file presets.
|
;;; Configuration file presets.
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
|
(define %rosenthal-example-emacs-fonts
|
||||||
|
(local-file "../examples/emacs/fonts.el"))
|
||||||
|
|
||||||
(define %rosenthal-example-emacs-init
|
(define %rosenthal-example-emacs-init
|
||||||
(computed-substitution-with-inputs "init.el"
|
(local-file "../examples/emacs/init.el"))
|
||||||
(local-file "../examples/emacs/init.el")
|
|
||||||
(list (local-file "../examples/emacs" #:recursive? #t))))
|
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
|
@ -1,128 +0,0 @@
|
|||||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
|
||||||
;;;
|
|
||||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
(define-module (rosenthal services shellutils)
|
|
||||||
#:use-module (srfi srfi-1)
|
|
||||||
#:use-module (srfi srfi-26)
|
|
||||||
|
|
||||||
#:use-module (guix gexp)
|
|
||||||
#:use-module (guix records)
|
|
||||||
|
|
||||||
#:use-module (gnu services)
|
|
||||||
#:use-module (gnu services configuration)
|
|
||||||
|
|
||||||
#:use-module (gnu home services shells)
|
|
||||||
|
|
||||||
#:use-module (rosenthal packages rust-apps)
|
|
||||||
|
|
||||||
#:export (home-atuin-configuration
|
|
||||||
home-atuin-service-type
|
|
||||||
|
|
||||||
home-direnv-configuration
|
|
||||||
home-direnv-service-type
|
|
||||||
|
|
||||||
home-zoxide-configuration
|
|
||||||
home-zoxide-service-type))
|
|
||||||
|
|
||||||
(define (shells? val)
|
|
||||||
(every (cut member <> '(bash zsh fish))
|
|
||||||
val))
|
|
||||||
|
|
||||||
;;;
|
|
||||||
;;; atuin
|
|
||||||
;;;
|
|
||||||
|
|
||||||
(define-configuration/no-serialization home-atuin-configuration
|
|
||||||
(atuin
|
|
||||||
(file-like atuin)
|
|
||||||
"")
|
|
||||||
(shells
|
|
||||||
shells
|
|
||||||
""))
|
|
||||||
|
|
||||||
(define %home-atuin-fish
|
|
||||||
(match-record-lambda <home-atuin-configuration>
|
|
||||||
(atuin shells)
|
|
||||||
(if (member 'fish shells)
|
|
||||||
(home-fish-extension
|
|
||||||
(config
|
|
||||||
(list (mixed-text-file "atuin.fish"
|
|
||||||
atuin "/bin/atuin init fish | source\n")))))))
|
|
||||||
|
|
||||||
(define home-atuin-service-type
|
|
||||||
(service-type
|
|
||||||
(name 'atuin)
|
|
||||||
(extensions
|
|
||||||
`(,@(if %home-atuin-fish
|
|
||||||
(list (service-extension home-fish-service-type
|
|
||||||
%home-atuin-fish))
|
|
||||||
|
|
||||||
'())))
|
|
||||||
(description "")))
|
|
||||||
|
|
||||||
|
|
||||||
;;;
|
|
||||||
;;; direnv
|
|
||||||
;;;
|
|
||||||
|
|
||||||
(define-configuration/no-serialization home-direnv-configuration
|
|
||||||
(direnv
|
|
||||||
(file-like (spec->pkg "direnv"))
|
|
||||||
"")
|
|
||||||
(shells
|
|
||||||
shells
|
|
||||||
""))
|
|
||||||
|
|
||||||
(define %home-direnv-fish
|
|
||||||
(match-record-lambda <home-direnv-configuration>
|
|
||||||
(direnv shells)
|
|
||||||
(if (member 'fish shells)
|
|
||||||
(home-fish-extension
|
|
||||||
(config
|
|
||||||
(list (mixed-text-file "direnv.fish"
|
|
||||||
direnv "/bin/direnv hook fish | source\n")))))))
|
|
||||||
|
|
||||||
(define home-direnv-service-type
|
|
||||||
(service-type
|
|
||||||
(name 'direnv)
|
|
||||||
(extensions
|
|
||||||
`(,@(if %home-direnv-fish
|
|
||||||
(list (service-extension home-fish-service-type
|
|
||||||
%home-direnv-fish))
|
|
||||||
|
|
||||||
'())))
|
|
||||||
(description "")))
|
|
||||||
|
|
||||||
|
|
||||||
;;;
|
|
||||||
;;; zoxide
|
|
||||||
;;;
|
|
||||||
|
|
||||||
(define-configuration/no-serialization home-zoxide-configuration
|
|
||||||
(zoxide
|
|
||||||
(file-like (spec->pkg "zoxide"))
|
|
||||||
"")
|
|
||||||
(shells
|
|
||||||
shells
|
|
||||||
""))
|
|
||||||
|
|
||||||
(define %home-zoxide-fish
|
|
||||||
(match-record-lambda <home-zoxide-configuration>
|
|
||||||
(zoxide shells)
|
|
||||||
(if (member 'fish shells)
|
|
||||||
(home-fish-extension
|
|
||||||
(config
|
|
||||||
(list (mixed-text-file "zoxide.fish"
|
|
||||||
zoxide "/bin/zoxide init --cmd cd fish | source\n")))))))
|
|
||||||
|
|
||||||
(define home-zoxide-service-type
|
|
||||||
(service-type
|
|
||||||
(name 'zoxide)
|
|
||||||
(extensions
|
|
||||||
`(,@(if %home-zoxide-fish
|
|
||||||
(list (service-extension home-fish-service-type
|
|
||||||
%home-zoxide-fish))
|
|
||||||
|
|
||||||
'())))
|
|
||||||
(description "")))
|
|
Loading…
Reference in New Issue
Block a user