summaryrefslogtreecommitdiffstats
path: root/shared/2configs/shack-drivedroid.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-11-17 22:15:07 +0100
committermakefu <github@syntax-fehler.de>2015-11-17 22:15:07 +0100
commit5aed0a395b2f78216bc02a7178527034bb079d28 (patch)
tree3e10c7b22b6f58ba25de1fc120b032708fedd00b /shared/2configs/shack-drivedroid.nix
parenta4ab19181b312a64a14f7da694e994959ce2b147 (diff)
shared wolf: static ip, fix todo
Diffstat (limited to 'shared/2configs/shack-drivedroid.nix')
-rw-r--r--shared/2configs/shack-drivedroid.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/shared/2configs/shack-drivedroid.nix b/shared/2configs/shack-drivedroid.nix
new file mode 100644
index 000000000..294f3a369
--- /dev/null
+++ b/shared/2configs/shack-drivedroid.nix
@@ -0,0 +1,18 @@
+{ pkgs, lib, ... }:
+
+{
+ krebs.nginx = {
+ enable = lib.mkDefault true;
+ servers = {
+ drivedroid-repo = {
+ server-names = [ "drivedroid.shack" ];
+ # TODO: prepare this somehow
+ locations = lib.singleton (lib.nameValuePair "/" ''
+ root /var/srv/drivedroid
+ index main.json
+ '');
+ };
+ };
+ };
+
+}