diff options
author | Timo Wilken | 2023-01-24 22:37:01 +0100 |
---|---|---|
committer | Timo Wilken | 2023-01-24 22:37:01 +0100 |
commit | 5c8a2a8504519d43b5b681424b3694dca0418965 (patch) | |
tree | 11886cc5edab64ce436bb6bd6d12cf7667b00e6b /tw/home/server.scm | |
parent | 90de989e54db38f5b8c1ad83b57a30d81e374911 (diff) |
Use a basic vim instead of Emacs on servers
Diffstat (limited to 'tw/home/server.scm')
-rw-r--r-- | tw/home/server.scm | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/tw/home/server.scm b/tw/home/server.scm index cc80c3c3..2cc0ceaf 100644 --- a/tw/home/server.scm +++ b/tw/home/server.scm @@ -1,11 +1,24 @@ (define-module (tw home server) + #:use-module (gnu) #:use-module (gnu home) + #:use-module (gnu home services) #:use-module (tw home) - #:use-module (tw home emacs)) + #:use-module (tw theme)) + +(use-package-modules vim) (home-environment ;; These packages will show up in the home profile, under ~/.guix-home/profile. - (packages (append common-packages emacs-packages)) + (packages + (cons* vim vim-surround common-packages)) ;; To search for available home services, run 'guix home search KEYWORD'. - (services (append (gnupg-services #:gui-pinentry? #f) - common-services emacs-services))) + (services + (cons* + (simple-service 'vim-config home-files-service-type + `((".vim/vimrc" ,(local-file "files/vimrc")) + (".vim/catppuccin.vim" ,catppuccin-vim))) + + (simple-service 'vim-is-editor home-environment-variables-service-type + `(("EDITOR" . "vim"))) ; we define no ASYNC_EDITOR + + (append common-services (gnupg-services #:gui-pinentry? #f))))) |