summaryrefslogtreecommitdiff
path: root/tw/system/lud.scm
diff options
context:
space:
mode:
authorTimo Wilken2023-02-17 20:00:16 +0100
committerTimo Wilken2023-02-17 20:00:16 +0100
commit2e1998111667216351a4189be9f56b24743fe6a7 (patch)
tree25d479a99402f0dd4b7a6a316b09ccf540a48315 /tw/system/lud.scm
parent8750e34390894eff23b22417c28ef4dd0b1ad54b (diff)
Fix indentation for computed-file
Diffstat (limited to 'tw/system/lud.scm')
-rw-r--r--tw/system/lud.scm27
1 files changed, 13 insertions, 14 deletions
diff --git a/tw/system/lud.scm b/tw/system/lud.scm
index f376f752..9986c30a 100644
--- a/tw/system/lud.scm
+++ b/tw/system/lud.scm
@@ -26,20 +26,19 @@
#~(kill (call-with-input-file "/var/run/httpd" read) SIGHUP)))
(define nextcloud-php.ini
- (computed-file
- "nextcloud-php.ini"
- #~(begin
- (use-modules (ice-9 popen) (ice-9 rdelim))
- (let* ((php-config #$(file-append php "/bin/php-config"))
- (pipe (open-pipe* OPEN_READ php-config "--extension-dir"))
- (php-extdir (read-line pipe)))
- (unless (zero? (status:exit-val (close-pipe pipe)))
- (error "Failed to get PHP extension dir"))
- (with-output-to-file #$output
- ;; Guix's PHP comes with the following extensions built-in,
- ;; so no extension= line necessary:
- ;; pdo_mysql, bcmath, bz2, exif, gd, iconv, intl
- (lambda () (display (string-append "\
+ (computed-file "nextcloud-php.ini"
+ #~(begin
+ (use-modules (ice-9 popen) (ice-9 rdelim))
+ (let* ((php-config #$(file-append php "/bin/php-config"))
+ (pipe (open-pipe* OPEN_READ php-config "--extension-dir"))
+ (php-extdir (read-line pipe)))
+ (unless (zero? (status:exit-val (close-pipe pipe)))
+ (error "Failed to get PHP extension dir"))
+ (with-output-to-file #$output
+ ;; Guix's PHP comes with the following extensions built-in,
+ ;; so no extension= line necessary:
+ ;; pdo_mysql, bcmath, bz2, exif, gd, iconv, intl
+ (lambda () (display (string-append "\
memory_limit=512M
extension_dir=/run/current-system/profile/lib/php/extensions/" (basename php-extdir) "
; Caching extensions for Nextcloud