aboutsummaryrefslogtreecommitdiff
path: root/tw/home/server.scm
diff options
context:
space:
mode:
authorTimo Wilken2024-02-16 22:49:52 +0100
committerTimo Wilken2024-02-16 22:49:52 +0100
commit4a757e97b598e7b33c3bbcd11fc984dbddffddb8 (patch)
treeb2ca990905376d2699e639c2e47682dcb5580f0f /tw/home/server.scm
parent05c919d74fad22f0a2d1bcd2154bc5aba5738c94 (diff)
Unify custom home services into tw-home-service-type
Instead of passing around lists of simple-services, create one new configurable service-type that extends everything it needs to. Install packages using home-profile-service-type instead of passing around lists.
Diffstat (limited to 'tw/home/server.scm')
-rw-r--r--tw/home/server.scm21
1 files changed, 5 insertions, 16 deletions
diff --git a/tw/home/server.scm b/tw/home/server.scm
index 4a6267f8..4ae168dd 100644
--- a/tw/home/server.scm
+++ b/tw/home/server.scm
@@ -1,24 +1,13 @@
(define-module (tw home server)
#:use-module (gnu home)
- #:use-module (gnu home services)
- #:use-module (gnu packages vim)
#:use-module (gnu services)
- #:use-module (guix gexp)
- #:use-module (tw home)
- #:use-module (tw theme))
+ #:use-module (tw home))
(define-public %server-home
(home-environment
- ;; Install vim as an editor. Neovim might be better, but doesn't have an
- ;; equivalent to `vim-surround' packaged.
- (packages (cons* vim vim-surround %common-packages))
- (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
- %common-services))))
+ (services (list (service tw-home-service-type
+ (tw-home-configuration
+ (x11-desktop? #f)
+ (pim? #f)))))))
%server-home