From 3084d6586919cf4129548cd59321553e3faffb04 Mon Sep 17 00:00:00 2001 From: Renken Date: Fri, 9 Sep 2022 17:57:30 +0200 Subject: home: custom packages list for foreign distros Running on GNU/Linux Debian testing for example allows me to have access to more up-to-date and better maintained software compared to Guix when needed. For now, certain software will be installed through apt instead of Guix itself such as mpd, mpv and neovim. The user will have to manually check if Guix-installed packages are compatible with the apt-installed ones. --- nichijou/home/nvim.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'nichijou/home/nvim.scm') diff --git a/nichijou/home/nvim.scm b/nichijou/home/nvim.scm index 27c8608..6daa7ac 100644 --- a/nichijou/home/nvim.scm +++ b/nichijou/home/nvim.scm @@ -3,11 +3,11 @@ #:use-module (gnu packages vim) #:use-module (gnu services) #:use-module (guix gexp) + #:use-module (ice-9 optargs) #:use-module (nichijou packages vim)) -(define-public packages - (list neovim - vim-airline +(define plugins + (list vim-airline vim-airline-themes vim-bbye vim-ctrlp @@ -21,6 +21,10 @@ vim-syntastic vim-tagbar)) +(define*-public (get-packages #:key (foreign-distro? #f)) + (if foreign-distro? plugins + (const neovim plugins))) + (define-public services (list (simple-service 'nichijou-nvim-config home-files-service-type `((".config/nvim/init.vim" ,(local-file -- cgit v1.2.3