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.
This commit is contained in:
Renken 2022-09-09 17:57:30 +02:00
parent 06c53ccf95
commit 3084d65869
Signed by: renken
GPG key ID: 1F2BB159B645E575
4 changed files with 24 additions and 10 deletions

View file

@ -2,10 +2,13 @@
#:use-module (gnu home services) #:use-module (gnu home services)
#:use-module (gnu packages mpd) #:use-module (gnu packages mpd)
#:use-module (gnu services) #:use-module (gnu services)
#:use-module (guix gexp)) #:use-module (guix gexp)
#:use-module (ice-9 optargs))
(define-public packages (define*-public (get-packages #:key (foreign-distro? #f))
(list mpd)) (if foreign-distro?
(list)
(list mpd)))
;; TODO: Write MPD home service? ;; TODO: Write MPD home service?
(define-public services (define-public services

View file

@ -2,10 +2,13 @@
#:use-module (gnu home services) #:use-module (gnu home services)
#:use-module (gnu packages video) #:use-module (gnu packages video)
#:use-module (gnu services) #:use-module (gnu services)
#:use-module (guix gexp)) #:use-module (guix gexp)
#:use-module (ice-9 optargs))
(define-public packages (define*-public (get-packages #:key (foreign-distro? #f))
(list mpv mpv-mpris)) (if foreign-distro?
(list)
(list mpv mpv-mpris)))
;; TODO: Implement mpv home service? ;; TODO: Implement mpv home service?
(define-public services (define-public services

View file

@ -3,11 +3,11 @@
#:use-module (gnu packages vim) #:use-module (gnu packages vim)
#:use-module (gnu services) #:use-module (gnu services)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (ice-9 optargs)
#:use-module (nichijou packages vim)) #:use-module (nichijou packages vim))
(define-public packages (define plugins
(list neovim (list vim-airline
vim-airline
vim-airline-themes vim-airline-themes
vim-bbye vim-bbye
vim-ctrlp vim-ctrlp
@ -21,6 +21,10 @@
vim-syntastic vim-syntastic
vim-tagbar)) vim-tagbar))
(define*-public (get-packages #:key (foreign-distro? #f))
(if foreign-distro? plugins
(const neovim plugins)))
(define-public services (define-public services
(list (simple-service 'nichijou-nvim-config home-files-service-type (list (simple-service 'nichijou-nvim-config home-files-service-type
`((".config/nvim/init.vim" ,(local-file `((".config/nvim/init.vim" ,(local-file

View file

@ -6,9 +6,13 @@
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (ice-9 optargs)) #:use-module (ice-9 optargs))
(define-public packages (define packages
(list zsh-syntax-highlighting zsh-autosuggestions fzf)) (list zsh-syntax-highlighting zsh-autosuggestions fzf))
(define*-public (get-packages #:key (foreign-distro? #f))
(if foreign-distro?
(list) packages))
(define-public services (define-public services
(list (service home-zsh-service-type (list (service home-zsh-service-type
(home-zsh-configuration (xdg-flavor? #t) (home-zsh-configuration (xdg-flavor? #t)