summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-09-13 11:18:21 +0200
committerAlan Pearce2019-09-13 11:18:21 +0200
commit3a66209dfb46373934e52fecd94659523dde4778 (patch)
treebb837411438a939633576de0cd94a7dd345c1b50
parent5347cf526d1f5cdcf8680f03fcd2a2c228efdf11 (diff)
downloadnixos-configuration-3a66209dfb46373934e52fecd94659523dde4778.tar.lz
nixos-configuration-3a66209dfb46373934e52fecd94659523dde4778.tar.zst
nixos-configuration-3a66209dfb46373934e52fecd94659523dde4778.zip
Enable docker buildkit
-rw-r--r--modules/satoshipay.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix
index 36c7f10..208a734 100644
--- a/modules/satoshipay.nix
+++ b/modules/satoshipay.nix
@@ -1,12 +1,20 @@
 { config, pkgs, fetchurl, lib, ... }:
 
 { virtualisation = {
-    docker = {
+  docker = let
+    daemonConfig = {
+      ipv6 = true;
+      fixed-cidr-v6 = "fd69:2074:9fcd:b0fd::/64";
+      features = [
+        { buildkit = true; }
+      ];
+    };
+    in {
       enable = true;
       enableOnBoot = false;
       liveRestore = false;
 
-      extraOptions = "--ipv6 --fixed-cidr-v6 fd69:2074:9fcd:b0fd::/64";
+      extraOptions = "--config-file=${pkgs.writeText "daemon.json" (builtins.toJSON daemonConfig)}";
 
       autoPrune = {
         enable = true;