docker-compose: support 'user' entry
This commit is contained in:
parent
fbf57b4489
commit
e800372155
1 changed files with 7 additions and 0 deletions
|
@ -140,6 +140,11 @@ in
|
||||||
default = null;
|
default = null;
|
||||||
description = dockerComposeRef "restart";
|
description = dockerComposeRef "restart";
|
||||||
};
|
};
|
||||||
|
service.user = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = dockerComposeKitchenSink;
|
||||||
|
};
|
||||||
service.ports = mkOption {
|
service.ports = mkOption {
|
||||||
type = listOf types.unspecified;
|
type = listOf types.unspecified;
|
||||||
default = [];
|
default = [];
|
||||||
|
@ -237,5 +242,7 @@ in
|
||||||
inherit (config.service) tty;
|
inherit (config.service) tty;
|
||||||
} // lib.optionalAttrs (config.service.working_dir != null) {
|
} // lib.optionalAttrs (config.service.working_dir != null) {
|
||||||
inherit (config.service) working_dir;
|
inherit (config.service) working_dir;
|
||||||
|
} // lib.optionalAttrs (config.service.user != null) {
|
||||||
|
inherit (config.service) user;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue