mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
services: Add home-fish-plugin-stinkpot-service-type.
* modules/rosenthal/services/shellutils.scm (<home-stinkpot-configuration>): New data type. (home-fish-plugin-stinkpot-service-type): New variable.
This commit is contained in:
1 file changed
+40
@@ -12,6 +12,7 @@
|
|||||||
#:use-module (guix i18n)
|
#:use-module (guix i18n)
|
||||||
#:use-module (guix records)
|
#:use-module (guix records)
|
||||||
#:use-module (rosenthal utils packages)
|
#:use-module (rosenthal utils packages)
|
||||||
|
#:use-module (rosenthal utils records)
|
||||||
;; Guix System - services
|
;; Guix System - services
|
||||||
#:use-module (gnu services)
|
#:use-module (gnu services)
|
||||||
#:use-module (gnu services configuration)
|
#:use-module (gnu services configuration)
|
||||||
@@ -20,12 +21,16 @@
|
|||||||
;; Guix packages
|
;; Guix packages
|
||||||
#:use-module (gnu packages rust-apps)
|
#:use-module (gnu packages rust-apps)
|
||||||
#:use-module (gnu packages shellutils)
|
#:use-module (gnu packages shellutils)
|
||||||
|
#:use-module (rosenthal packages shellutils)
|
||||||
#:export (home-fish-plugin-atuin-service-type
|
#:export (home-fish-plugin-atuin-service-type
|
||||||
home-atuin-configuration
|
home-atuin-configuration
|
||||||
|
|
||||||
home-fish-plugin-direnv-service-type
|
home-fish-plugin-direnv-service-type
|
||||||
home-direnv-configuration
|
home-direnv-configuration
|
||||||
|
|
||||||
|
home-fish-plugin-stinkpot-service-type
|
||||||
|
home-stinkpot-configuration
|
||||||
|
|
||||||
home-fish-plugin-zoxide-service-type
|
home-fish-plugin-zoxide-service-type
|
||||||
home-zoxide-configuration))
|
home-zoxide-configuration))
|
||||||
|
|
||||||
@@ -108,6 +113,41 @@ end\n"))))))
|
|||||||
(define-deprecated/public-alias home-direnv-service-type
|
(define-deprecated/public-alias home-direnv-service-type
|
||||||
home-fish-plugin-direnv-service-type)
|
home-fish-plugin-direnv-service-type)
|
||||||
|
|
||||||
|
|
||||||
|
;;;
|
||||||
|
;;; stinkpot
|
||||||
|
;;;
|
||||||
|
|
||||||
|
(define-record-type/dolly <home-stinkpot-configuration>
|
||||||
|
home-stinkpot-configuration
|
||||||
|
make-home-stinkpot-configuration
|
||||||
|
home-stinkpot-configuration?
|
||||||
|
this-home-stinkpot-configuration
|
||||||
|
(stinkpot
|
||||||
|
home-stinkpot-configuration-stinkpot
|
||||||
|
(default stinkpot)
|
||||||
|
(contract file-like?)))
|
||||||
|
|
||||||
|
(define home-stinkpot-fish-service
|
||||||
|
(match-record-lambda/dolly <home-stinkpot-configuration>
|
||||||
|
(stinkpot)
|
||||||
|
(home-fish-extension
|
||||||
|
(config
|
||||||
|
(list (mixed-text-file "stinkpot.fish" "\
|
||||||
|
status is-interactive
|
||||||
|
and begin
|
||||||
|
" stinkpot "/bin/stinkpot init fish | source
|
||||||
|
end\n"))))))
|
||||||
|
|
||||||
|
(define home-fish-plugin-stinkpot-service-type
|
||||||
|
(service-type
|
||||||
|
(name 'home-stinkpot)
|
||||||
|
(extensions
|
||||||
|
(list (service-extension home-fish-service-type
|
||||||
|
home-stinkpot-fish-service)))
|
||||||
|
(default-value (home-stinkpot-configuration))
|
||||||
|
(description "Set up @command{stinkpot} for Fish shell.")))
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
;;; zoxide
|
;;; zoxide
|
||||||
|
|||||||
Reference in new issue
Block a user