mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
services: jellyfin: Rename to jellyfin-oci-service-type.
This commit is contained in:
1 file changed
+16
-17
@@ -42,8 +42,8 @@
|
|||||||
iocaine-service-type
|
iocaine-service-type
|
||||||
iocaine-configuration
|
iocaine-configuration
|
||||||
|
|
||||||
jellyfin-configuration
|
jellyfin-oci-configuration
|
||||||
jellyfin-service-type
|
jellyfin-oci-service-type
|
||||||
|
|
||||||
komga-configuration
|
komga-configuration
|
||||||
komga-service-type
|
komga-service-type
|
||||||
@@ -386,13 +386,12 @@ test its configuration file."))
|
|||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
;;; Jellyfin
|
;;; Jellyfin media system (OCI)
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
|
|
||||||
(define-maybe string)
|
(define-maybe string)
|
||||||
|
|
||||||
(define-configuration jellyfin-configuration
|
(define-configuration jellyfin-oci-configuration
|
||||||
(cache-directory
|
(cache-directory
|
||||||
(string "/var/cache/jellyfin")
|
(string "/var/cache/jellyfin")
|
||||||
"Path to cache directory.")
|
"Path to cache directory.")
|
||||||
@@ -416,8 +415,8 @@ test its configuration file."))
|
|||||||
"List of extra options.")
|
"List of extra options.")
|
||||||
(no-serialization))
|
(no-serialization))
|
||||||
|
|
||||||
(define jellyfin-account
|
(define jellyfin-oci-account-service
|
||||||
(match-record-lambda <jellyfin-configuration>
|
(match-record-lambda <jellyfin-oci-configuration>
|
||||||
(user-id)
|
(user-id)
|
||||||
(list (user-account
|
(list (user-account
|
||||||
(name "jellyfin")
|
(name "jellyfin")
|
||||||
@@ -427,8 +426,8 @@ test its configuration file."))
|
|||||||
(home-directory "/var/empty")
|
(home-directory "/var/empty")
|
||||||
(shell (file-append shadow "/sbin/nologin"))))))
|
(shell (file-append shadow "/sbin/nologin"))))))
|
||||||
|
|
||||||
(define jellyfin-activation
|
(define jellyfin-oci-activation-service
|
||||||
(match-record-lambda <jellyfin-configuration>
|
(match-record-lambda <jellyfin-oci-configuration>
|
||||||
(cache-directory config-directory)
|
(cache-directory config-directory)
|
||||||
#~(let ((user (getpwnam "jellyfin")))
|
#~(let ((user (getpwnam "jellyfin")))
|
||||||
(for-each
|
(for-each
|
||||||
@@ -438,8 +437,8 @@ test its configuration file."))
|
|||||||
(chown directory (passwd:uid user) (passwd:gid user))))
|
(chown directory (passwd:uid user) (passwd:gid user))))
|
||||||
'#$(list cache-directory config-directory)))))
|
'#$(list cache-directory config-directory)))))
|
||||||
|
|
||||||
(define jellyfin-oci
|
(define jellyfin-oci-oci-service
|
||||||
(match-record-lambda <jellyfin-configuration>
|
(match-record-lambda <jellyfin-oci-configuration>
|
||||||
(cache-directory config-directory
|
(cache-directory config-directory
|
||||||
proxy-url log-file auto-start? extra-options)
|
proxy-url log-file auto-start? extra-options)
|
||||||
(oci-extension
|
(oci-extension
|
||||||
@@ -463,17 +462,17 @@ test its configuration file."))
|
|||||||
(,config-directory . "/config")))
|
(,config-directory . "/config")))
|
||||||
(extra-arguments extra-options)))))))
|
(extra-arguments extra-options)))))))
|
||||||
|
|
||||||
(define jellyfin-service-type
|
(define jellyfin-oci-service-type
|
||||||
(service-type
|
(service-type
|
||||||
(name 'jellyfin)
|
(name 'jellyfin-oci)
|
||||||
(extensions
|
(extensions
|
||||||
(list (service-extension account-service-type
|
(list (service-extension account-service-type
|
||||||
jellyfin-account)
|
jellyfin-oci-account-service)
|
||||||
(service-extension activation-service-type
|
(service-extension activation-service-type
|
||||||
jellyfin-activation)
|
jellyfin-oci-activation-service)
|
||||||
(service-extension oci-service-type
|
(service-extension oci-service-type
|
||||||
jellyfin-oci)))
|
jellyfin-oci-oci-service)))
|
||||||
(default-value (jellyfin-configuration))
|
(default-value (jellyfin-oci-configuration))
|
||||||
(description "Run Jellyfin, a media system.")))
|
(description "Run Jellyfin, a media system.")))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user