summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/lanparty
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-11-08 10:48:14 +0100
committermakefu <github@syntax-fehler.de>2017-11-08 10:48:14 +0100
commit9f8aa6abaedf8cbf3ce40548b1e52ac45c469c38 (patch)
tree5f00d80e63000a085b337e4f5f3adbccb3d8e372 /makefu/2configs/lanparty
parent5a25b91d1d0b2380371ead7fee04e33bfa0814af (diff)
ma lancache-dns: refactor
Diffstat (limited to 'makefu/2configs/lanparty')
-rw-r--r--makefu/2configs/lanparty/lancache-dns.nix22
1 files changed, 13 insertions, 9 deletions
diff --git a/makefu/2configs/lanparty/lancache-dns.nix b/makefu/2configs/lanparty/lancache-dns.nix
index 5d90d1a99..498162d13 100644
--- a/makefu/2configs/lanparty/lancache-dns.nix
+++ b/makefu/2configs/lanparty/lancache-dns.nix
@@ -1,6 +1,17 @@
{ pkgs, lib, config, ... }:
with import <stockholm/lib>;
let
+ upstream-server = "8.8.8.8";
+ local_ip = "192.168.10.10";
+
+ extra-config = pkgs.writeText "local.conf" ''
+ server:
+ local-data: "piratebox. A ${local_ip}"
+ local-data: "store. A ${local_ip}"
+ local-data: "share. A ${local_ip}"
+ '';
+
+
# see https://github.com/zeropingheroes/lancache for full docs
lancache-dns = pkgs.stdenv.mkDerivation rec {
name = "lancache-dns-2017-06-28";
@@ -11,8 +22,9 @@ let
rev = "420aa62";
sha256 = "0ik7by7ripdv2avyy5kk9jp1i7rz9ksc8xmg7n9iik365q9pv94m";
};
+
phases = [ "unpackPhase" "installPhase" ];
- # here we can chance to edit `includes/proxy-cache-paths.conf`
+ # here we have the chance to edit `includes/proxy-cache-paths.conf`
installPhase = ''
mkdir -p $out
cp -r * $out/
@@ -20,14 +32,6 @@ let
};
stateDir = "/var/lib/unbound";
user = "unbound";
- upstream-server = "8.8.8.8";
- local_ip = "192.168.1.10";
- extra-config = pkgs.writeText "local.conf" ''
- server:
- local-data: "piratebox. A ${local_ip}"
- local-data: "store. A ${local_ip}"
- local-data: "share. A ${local_ip}"
- '';
in {
services.unbound = {
enable = true;