aboutsummaryrefslogtreecommitdiff
path: root/gn/services/bnw-container.scm
diff options
context:
space:
mode:
authorEfraim Flashner2019-10-25 09:09:50 -0500
committerEfraim Flashner2019-10-25 09:09:50 -0500
commit67d99cd7e533fb867aca258175660885793b1481 (patch)
tree21fe9ea361cb51906e9f13f3dbc3619cd16522fa /gn/services/bnw-container.scm
parent88e218c7f247961cd1dc98f082e178599ed5dfc5 (diff)
downloadguix-bioinformatics-67d99cd7e533fb867aca258175660885793b1481.tar.gz
gn: Add service files for bnw
Diffstat (limited to 'gn/services/bnw-container.scm')
-rw-r--r--gn/services/bnw-container.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gn/services/bnw-container.scm b/gn/services/bnw-container.scm
new file mode 100644
index 0000000..eab431f
--- /dev/null
+++ b/gn/services/bnw-container.scm
@@ -0,0 +1,28 @@
+(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)))))))))