Fix whitespace
systems/xana.scm
24 | 24 | (use-modules (config certbot) (config cuirass) (config network) (config os)) | |
25 | 25 | (use-modules (guix gexp)) | |
26 | 26 | (use-package-modules base compression gettext guile guile-xyz linux version-control | |
27 | - | wget) | |
27 | + | wget) | |
28 | 28 | ||
29 | 29 | (define (makefile-job directory target packages env) | |
30 | 30 | #~(lambda () | |
… | |||
33 | 33 | (map (lambda (p) (string-append p "/bin")) (list #$@packages)) | |
34 | 34 | ":")) | |
35 | 35 | (define (get-path dir) | |
36 | - | (string-join | |
37 | - | (map (lambda (p) (string-append p "/" path) (list #$@packages))) | |
38 | - | ":")) | |
36 | + | (string-join | |
37 | + | (map (lambda (p) (string-append p "/" path) (list #$@packages))) | |
38 | + | ":")) | |
39 | 39 | (setenv "PATH" path) | |
40 | 40 | (setenv "GIT_SSL_CAINFO" "/etc/ssl/certs/ca-certificates.crt") | |
41 | 41 | (setenv "SSL_CERT_DIR" "/etc/ssl/certs") | |
42 | 42 | (setenv "SSL_CERT_FILE" "/etc/ssl/certs/ca-certificates.crt") | |
43 | 43 | (setenv "LANG" "en_US.UTF-8") | |
44 | 44 | (for-each | |
45 | - | (lambda (env) | |
46 | - | (setenv (car env) (get-path (cdr env)))) | |
47 | - | (quote #$env)) | |
45 | + | (lambda (env) | |
46 | + | (setenv (car env) (get-path (cdr env)))) | |
47 | + | (quote #$env)) | |
48 | 48 | (execl #$(file-append gnu-make "/bin/make") "make" "-C" #$directory #$target))) | |
49 | 49 | ||
50 | 50 | (define i18n-download-job | |
51 | 51 | #~(job '(next-minute-from (next-hour '(05)) '(51)) | |
52 | 52 | #$(makefile-job "/srv/http/i18n" "fdroid-update" | |
53 | 53 | (list gnu-make coreutils findutils git) | |
54 | - | '()))) | |
54 | + | '()))) | |
55 | 55 | ||
56 | 56 | (define i18n-compile-job | |
57 | 57 | #~(job '(next-minute-from (next-hour '(06)) '(21)) | |
58 | 58 | #$(makefile-job "/srv/http/i18n" "all" | |
59 | 59 | (list gnu-make coreutils findutils git grep util-linux) | |
60 | - | '()))) | |
60 | + | '()))) | |
61 | 61 | ||
62 | 62 | (define nani-download-job | |
63 | 63 | #~(job '(next-minute-from (next-hour-from (next-day (range 1 31 5)) '(02)) '(12)) | |
64 | 64 | #$(makefile-job "/srv/http/nani" "download" | |
65 | 65 | (list gnu-make coreutils findutils grep gzip libiconv | |
66 | - | sed tar unzip util-linux wget xz) | |
67 | - | '()))) | |
66 | + | sed tar unzip util-linux wget xz) | |
67 | + | '()))) | |
68 | 68 | ||
69 | 69 | (define nani-update-job | |
70 | 70 | #~(job '(next-minute-from (next-hour-from (next-day (range 1 31 5)) '(03)) '(12)) | |
71 | 71 | #$(makefile-job "/srv/http/nani" "all" | |
72 | 72 | (list gnu-make coreutils findutils gnu-gettext grep guile-3.0 | |
73 | - | haunt sed) | |
74 | - | '(("GUILE_LOAD_PATH" . "share/guile/site/3.0") | |
75 | - | ("GUILE_LOAD_COMPILED_PATH" . "share/guile/site/3.0"))))) | |
73 | + | haunt sed) | |
74 | + | '(("GUILE_LOAD_PATH" . "share/guile/site/3.0") | |
75 | + | ("GUILE_LOAD_COMPILED_PATH" . "share/guile/site/3.0"))))) | |
76 | 76 | ||
77 | 77 | (operating-system | |
78 | 78 | (inherit (tyreunom-os "xana")) | |
… | |||
96 | 96 | nani-download-job nani-update-job)) | |
97 | 97 | (certbot-service `(("xana.lepiller.eu") | |
98 | 98 | ("nani.lepiller.eu") | |
99 | - | ("i18n.lepiller.eu"))) | |
99 | + | ("i18n.lepiller.eu"))) | |
100 | 100 | (simple-service 'nani-http-server nginx-service-type | |
101 | 101 | (list (nginx-server-configuration | |
102 | 102 | (ssl-certificate |