Merge pull request #19 from srghma/myfixes
docker-config -> add missing fields
This commit is contained in:
commit
1044cc3e01
1 changed files with 21 additions and 1 deletions
|
@ -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 = {};
|
||||||
|
@ -35,10 +39,26 @@ in
|
||||||
type = listOf string;
|
type = listOf string;
|
||||||
default = [];
|
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 {
|
service.working_dir = mkOption {
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue