summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
Diffstat (limited to 'guix')
-rw-r--r--guix/system-create.scm43
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")