[feat] add zellij

Signed-off-by: SouthFox <master@southfox.me>
This commit is contained in:
SouthFox 2024-11-18 15:02:16 +08:00
parent 6be4076611
commit e863074b3c
3 changed files with 44 additions and 7 deletions

View file

@ -97,3 +97,5 @@ eval "$(fzf --zsh)"
export PYENV_ROOT="$HOME/.pyenv" export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
eval "$(zellij setup --generate-auto-start zsh)"

View file

@ -18,12 +18,18 @@
(home-environment (home-environment
;; Below is the list of packages that will show up in your ;; Below is the list of packages that will show up in your
;; Home profile, under ~/.guix-home/profile. ;; Home profile, under ~/.guix-home/profile.
(packages (specifications->packages (list "guile-hoot" (packages (append (specifications->packages
"guile-next" (list
"zsh" "guile-hoot"
"zsh-autosuggestions" "guile-next"
"zsh-syntax-highlighting" "zsh"
"fzf"))) "zsh-autosuggestions"
"zsh-syntax-highlighting"
"fzf"
))
(list
zellij)
))
(services (services
(list (list
@ -32,7 +38,7 @@
(service home-zsh-service-type (service home-zsh-service-type
(home-zsh-configuration (home-zsh-configuration
(zshrc (list (local-file "files/zshrc"))) (zshrc (list (local-file "files/zshrc")))
)) ))
) )
) )
) )

View file

@ -37,3 +37,32 @@ your morning, and an auto-update tool that makes it easy to keep up with the lat
(list (service-extension (list (service-extension
home-files-service-type home-files-service-type
(lambda (_) (list `(".oh-my-zsh" ,oh-my-zsh)))))))) (lambda (_) (list `(".oh-my-zsh" ,oh-my-zsh))))))))
(define-public zellij
(package
(name "zellij")
(version "0.41.1")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/zellij-org/zellij/releases/download/v"
version "/zellij-x86_64-unknown-linux-musl.tar.gz"))
(sha256
(base32 "113c9agbx36hiq6a1kf2jydrv3h3cd8s0albnwxi0qd1c0n1rxyw")
)))
(build-system copy-build-system)
(arguments
(list
#:substitutable? #f
#:install-plan
#~'(("zellij" "bin/"))
#:phases
#~(modify-phases %standard-phases
(replace 'unpack
(lambda* (#:key source #:allow-other-keys)
(invoke "tar" "-xvf" source))))))
(home-page "https://github.com/zellij-org/zellij")
(synopsis "A terminal workspace with batteries included.")
(description
"A terminal workspace with batteries included.")
(license expat)))