diff options
author | Thanos Apollo <[email protected]> | 2024-06-06 13:08:22 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-06-06 13:25:15 +0300 |
commit | 4a8296fc6f2458941246e2eddc6a03af14531476 (patch) | |
tree | 5da30b1b1e4669e1d6d3e06a37735ee11eeef082 | |
parent | 8dfe166bbfc673fdf1661288bae5e4b2e9885698 (diff) |
guix:(system) Add oci-containers for desktop
-rw-r--r-- | guix/system-create.scm | 22 |
1 files changed, 20 insertions, 2 deletions
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 |