From 4a8296fc6f2458941246e2eddc6a03af14531476 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 6 Jun 2024 13:08:22 +0300 Subject: guix:(system) Add oci-containers for desktop --- guix/system-create.scm | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'guix') diff --git a/guix/system-create.scm b/guix/system-create.scm index 10577bb..b967512 100644 --- a/guix/system-create.scm +++ b/guix/system-create.scm @@ -3,6 +3,7 @@ #:use-module (gnu) #:use-module (gnu services) #:use-module (gnu services dbus) + #:use-module (gnu services docker) #:use-module (gnu system) #:use-module (gnu system setuid) #:use-module (gnu system nss) @@ -63,7 +64,25 @@ ;; services, run 'guix system search KEYWORD' in a terminal. (services (append (list + ;; Containers (service docker-service-type) + + (when (string= hostname "zeus") + (service oci-container-service-type + (list + (oci-container-configuration + (image "ollama/ollama") + (network "host") + (ports + '(("11434" . "11434")))) + (oci-container-configuration + (image "jellyfin/jellyfin") + (network "host") + (volumes + '("/home/jelly/config:/config" + "/home/jelly/cache:/cache" + "/hdd:/media")))))) + ;; tty login (service elogind-service-type) @@ -93,8 +112,7 @@ (greetd-terminal-configuration (terminal-vt "5")))))) - (service gnome-desktop-service-type) - + ;; (service gnome-desktop-service-type) (service openssh-service-type (openssh-configuration -- cgit v1.2.3