diff options
author | Timo Wilken | 2024-02-16 22:49:52 +0100 |
---|---|---|
committer | Timo Wilken | 2024-02-16 22:49:52 +0100 |
commit | 4a757e97b598e7b33c3bbcd11fc984dbddffddb8 (patch) | |
tree | b2ca990905376d2699e639c2e47682dcb5580f0f /tw/home/server.scm | |
parent | 05c919d74fad22f0a2d1bcd2154bc5aba5738c94 (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.scm | 21 |
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 |