summary refs log tree commit diff stats
path: root/modules/development
diff options
context:
space:
mode:
Diffstat (limited to 'modules/development')
-rw-r--r--modules/development/javascript.nix18
-rw-r--r--modules/development/kubernetes.nix21
2 files changed, 30 insertions, 9 deletions
diff --git a/modules/development/javascript.nix b/modules/development/javascript.nix
index 37b7865..7e9dcfb 100644
--- a/modules/development/javascript.nix
+++ b/modules/development/javascript.nix
@@ -1,17 +1,17 @@
 { config, pkgs, ... }:
 
 { environment.systemPackages = with pkgs.unstable; [
-    nodejs-8_x
+    nodejs-10_x
 
-    nodePackages.tern
-    nodePackages.node2nix
-    nodePackages.nodemon
-    nodePackages.javascript-typescript-langserver
-    nodePackages.eslint_d
+    nodePackages_10_x.tern
+    nodePackages_10_x.node2nix
+    nodePackages_10_x.nodemon
+    nodePackages_10_x.javascript-typescript-langserver
+    nodePackages_10_x.eslint_d
 
-    nodePackages.node-gyp
-    nodePackages.node-gyp-build
-    nodePackages.node-pre-gyp
+    nodePackages_10_x.node-gyp
+    nodePackages_10_x.node-gyp-build
+    nodePackages_10_x.node-pre-gyp
   ] ++ (
     if stdenv.isDarwin
     then
diff --git a/modules/development/kubernetes.nix b/modules/development/kubernetes.nix
new file mode 100644
index 0000000..692e46d
--- /dev/null
+++ b/modules/development/kubernetes.nix
@@ -0,0 +1,21 @@
+{ config, pkgs, ... }:
+
+{
+  networking.bridges = {
+    cbr0.interfaces = [];
+  };
+  networking.interfaces = {
+    cbr0 = {
+      ipv4.addresses = [
+      { address = "10.10.0.1";
+        prefixLength = 24;
+      }
+      ];
+    };
+  };
+  services.kubernetes.roles = ["master" "node"];
+  services.kubernetes.kubelet.extraOpts = "--fail-swap-on=false";
+  virtualisation.docker.extraOptions = ''
+    --iptables=false --ip-masq=false -b cbr0
+  '';
+}