aboutsummaryrefslogtreecommitdiff
path: root/gn/services/bnw-container.scm
blob: cd8562f0e9ec18a4cd71c710fb79a392c29b84bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(define-module (gn services bnw-container))

(use-modules (gnu))
(use-service-modules base networking web)

(operating-system
  (host-name "bnw")
  (timezone "Etc/UTC")
  (locale "en_US.utf8")

  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (target "does-not-matter")))
  (file-systems %base-file-systems)
  ;; No firmware for VMs
  (firmware '())

  (services (list (service dhcp-client-service-type)
                  (service php-fpm-service-type)
                  (service nginx-service-type
                           (nginx-configuration
                             (server-blocks
                               (list
                                 (nginx-server-configuration
                                   (root "/srv/http/bnw")
                                   (locations
                                     (list (nginx-php-location)))
                                   (listen '("8880"))
                                   (ssl-certificate #f)
                                   (ssl-certificate-key #f)))))))))