Update nono
systems/nono.scm
33 | 33 | (use-modules (gnu packages mail)) | |
34 | 34 | (use-modules (gnu packages package-management)) | |
35 | 35 | (use-modules (gnu packages php)) | |
36 | + | (use-modules (gnu packages tls)) | |
36 | 37 | (use-modules (gnu packages tor)) | |
37 | 38 | (use-modules (gnu packages web)) | |
38 | 39 | ||
… | |||
43 | 44 | (use-modules (config certbot) (config dns) (config iptables) | |
44 | 45 | (config mail) (config os) (config static-web) | |
45 | 46 | (config web) | |
46 | - | (packages gitile)) | |
47 | + | (packages gitile) | |
48 | + | (services gitile)) | |
47 | 49 | ||
48 | 50 | ;; Copy from (gnu bootloader u-boot) | |
49 | 51 | ||
… | |||
51 | 53 | (let ((base (make-u-boot-package "rock-pi-4-rk3399" "aarch64-linux-gnu"))) | |
52 | 54 | (package | |
53 | 55 | (inherit base) | |
56 | + | (source (origin | |
57 | + | (inherit (package-source base)) | |
58 | + | (modules '((guix build utils))) | |
59 | + | (snippet | |
60 | + | `(begin | |
61 | + | (substitute* "configs/rock-pi-4-rk3399_defconfig" | |
62 | + | (("CONFIG_SPL_FIT_SIGNATURE=y") "")) | |
63 | + | #;(substitute* "include/image.h" | |
64 | + | (("# include <openssl/evp.h>") "") | |
65 | + | (("IMAGE_ENABLE_SIGN\t1") "IMAGE_ENABLE_SIGN 0") | |
66 | + | (("IMAGE_ENABLE_VERIFY\t1") "IMAGE_ENABLE_VERIFY 0") | |
67 | + | (("IMAGE_ENABLE_ENCRYPT\t1") "IMAGE_ENABLE_ENRYPT 0") | |
68 | + | (("IMAGE_ENABLE_DECRYPT\t1") "IMAGE_ENABLE_DERYPT 0") | |
69 | + | ))))) | |
54 | 70 | (arguments | |
55 | 71 | (substitute-keyword-arguments (package-arguments base) | |
56 | 72 | ((#:phases phases) | |
57 | - | `(modify-phases ,phases | |
73 | + | #~(modify-phases #$phases | |
58 | 74 | (add-after 'unpack 'set-environment | |
59 | 75 | (lambda* (#:key inputs #:allow-other-keys) | |
60 | 76 | (setenv "BL31" | |
61 | - | (search-input-file inputs "/bl31.elf")))) | |
77 | + | (search-input-file inputs "bl31.elf")))) | |
62 | 78 | ;; Phases do not succeed on the bl31 ELF. | |
63 | 79 | (delete 'strip) | |
64 | 80 | (delete 'validate-runpath))))) | |
65 | - | (native-inputs | |
66 | - | `(("firmware" ,arm-trusted-firmware-rk3399) | |
67 | - | ,@(package-native-inputs base)))))) | |
81 | + | (inputs | |
82 | + | (modify-inputs (package-inputs base) | |
83 | + | (append arm-trusted-firmware-rk3399)))))) | |
68 | 84 | ||
69 | 85 | ;; Same as install-rockpro64-rk3399-u-boot | |
70 | 86 | (define install-rock-pi-4-rk3399-u-boot | |
… | |||
161 | 177 | (ssl-certificate-key | |
162 | 178 | "/etc/letsencrypt/live/nono.lepiller.eu/privkey.pem") | |
163 | 179 | (listen '("443 ssl http2" "[::]:443 ssl http2")) | |
164 | - | (server-name '(default)) | |
180 | + | (server-name '(default "nono.lepiller.eu" "toulouse.lepiller.eu")) | |
165 | 181 | (root "/srv/http/default")))) | |
166 | 182 | #;(simple-service 'social-http-server nginx-service-type | |
167 | 183 | (list (nginx-server-configuration |