feat: docker-config -> add missing fields -> priviliged and hostname

This commit is contained in:
Serhii Khoma 2019-02-03 21:07:00 +02:00
parent cb25b976ff
commit 20651e8739

View file

@ -8,7 +8,7 @@
let let
inherit (lib) mkOption types; inherit (lib) mkOption types;
inherit (types) listOf nullOr attrsOf string either int; inherit (types) listOf nullOr attrsOf string either int bool;
in in
{ {
options = { options = {
@ -20,6 +20,10 @@ in
type = nullOr string; type = nullOr string;
default = null; default = null;
}; };
service.hostname = mkOption {
type = nullOr string;
default = null;
};
service.environment = mkOption { service.environment = mkOption {
type = attrsOf (either string int); type = attrsOf (either string int);
default = {}; default = {};
@ -39,6 +43,10 @@ in
type = nullOr string; type = nullOr string;
default = null; default = null;
}; };
service.privileged = mkOption {
type = nullOr bool;
default = null;
};
service.entrypoint = mkOption { service.entrypoint = mkOption {
type = nullOr string; type = nullOr string;
default = null; default = null;