aboutsummaryrefslogtreecommitdiff
path: root/gn/services/bnw.service
diff options
context:
space:
mode:
Diffstat (limited to 'gn/services/bnw.service')
-rw-r--r--gn/services/bnw.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/gn/services/bnw.service b/gn/services/bnw.service
new file mode 100644
index 0000000..ec7b3f8
--- /dev/null
+++ b/gn/services/bnw.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=BNW web server
+Wants=guix-daemon.service
+
+[Service]
+Environment="BNW_COMMAND=$(/bin/su -l bnw -c '/var/guix/profiles/per-user/bnw/current-guix/bin/guix system container /home/bnw/guix-bioinformatics/gn/services/bnw-container.scm --share=/home/bnw/server=/srv/http --network')"
+ExecStart=/bin/bash -c '${BNW_COMMAND}'
+
+[Install]
+WantedBy=multi-user.target