From 20651e87399f07336d7c139531b34abefec0b2ac Mon Sep 17 00:00:00 2001 From: Serhii Khoma Date: Sun, 3 Feb 2019 21:07:00 +0200 Subject: [PATCH 1/2] feat: docker-config -> add missing fields -> priviliged and hostname --- src/nix/service.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/nix/service.nix b/src/nix/service.nix index 927126b..a8c19b5 100644 --- a/src/nix/service.nix +++ b/src/nix/service.nix @@ -8,7 +8,7 @@ let inherit (lib) mkOption types; - inherit (types) listOf nullOr attrsOf string either int; + inherit (types) listOf nullOr attrsOf string either int bool; in { options = { @@ -20,6 +20,10 @@ in type = nullOr string; default = null; }; + service.hostname = mkOption { + type = nullOr string; + default = null; + }; service.environment = mkOption { type = attrsOf (either string int); default = {}; @@ -39,6 +43,10 @@ in type = nullOr string; default = null; }; + service.privileged = mkOption { + type = nullOr bool; + default = null; + }; service.entrypoint = mkOption { type = nullOr string; default = null; From 57d5370e7649d58912b22f2be81c66172ad49a5f Mon Sep 17 00:00:00 2001 From: Serhii Khoma Date: Sun, 3 Feb 2019 22:24:26 +0200 Subject: [PATCH 2/2] feat: docker-config -> add missing fields -> links, external_links, extra_hosts --- src/nix/service.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/nix/service.nix b/src/nix/service.nix index a8c19b5..ef15a81 100644 --- a/src/nix/service.nix +++ b/src/nix/service.nix @@ -39,6 +39,18 @@ in type = listOf string; default = []; }; + service.links = mkOption { + type = listOf string; + default = []; + }; + service.external_links = mkOption { + type = listOf string; + default = []; + }; + service.extra_hosts = mkOption { + type = listOf string; + default = []; + }; service.working_dir = mkOption { type = nullOr string; default = null;