diff options
author | Thanos Apollo <[email protected]> | 2024-06-10 20:31:59 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-06-10 20:31:59 +0300 |
commit | 9f0c5290cd49444989be0ac6099ff5bb0dc2c3cb (patch) | |
tree | fa53dd838c944128de325dd01ad30f531ad69cbc /guix | |
parent | 47bc655b0994db28019e44f6f4af6ed15d5af8ec (diff) |
guix:(system) Add transmission & restracture oci-containers
Diffstat (limited to 'guix')
-rw-r--r-- | guix/system-create.scm | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/guix/system-create.scm b/guix/system-create.scm index 29a363a..7848371 100644 --- a/guix/system-create.scm +++ b/guix/system-create.scm @@ -4,6 +4,7 @@ #:use-module (gnu services) #:use-module (gnu services dbus) #:use-module (gnu services docker) + #:use-module (gnu services file-sharing) #:use-module (gnu system) #:use-module (gnu system setuid) #:use-module (gnu system nss) @@ -25,6 +26,23 @@ "waybar" "gnupg" "pinentry" "font-jetbrains-mono" "docker" "docker-cli")) +(define thanos/desktop-containers + (list + (oci-container-configuration + (image "ollama/ollama:rocm") + (network "host") + (ports + '(("11434" . "11434"))) + (volumes + '(("/ollama" . "/root/.ollama")))) + (oci-container-configuration + (image "jellyfin/jellyfin") + (network "host") + (volumes + '(("/home/jelly/config" . "/config") + ("/home/jelly/cache" . "/cache") + ("/hdd" . "/media")))))) + (define* (system-create #:key (system-packages thanos/system-packages) (kernel linux-lts) @@ -41,7 +59,6 @@ (keyboard-layout "us" #:options '("ctrl:swapcaps")) (keyboard-layout "us"))) - ;; TODO: Use the full linux kernel only on the desktop (kernel kernel) (initrd microcode-initrd) (firmware (list linux-firmware)) @@ -69,19 +86,16 @@ (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")))))) + thanos/desktop-containers)) + + (service transmission-daemon-service-type + (transmission-daemon-configuration + ;; Accept requests from this and other hosts on the + ;; local network + (rpc-whitelist-enabled? #t) + (rpc-whitelist '("::1" "127.0.0.1" "192.168.0.*")) + (rpc-username "z3us") + (rpc-password "{eab35f5df5b1e2691acf11f49be1b1dcffa55a59FyE5eNd8"))) ;; tty login (service elogind-service-type) @@ -118,7 +132,6 @@ (openssh-configuration (permit-root-login 'prohibit-password))) - ;; TODO: Fix swaylock (service screen-locker-service-type (screen-locker-configuration (name "swaylock") |