Fix warnings

This commit is contained in:
Robert Hensing 2019-10-29 11:04:25 +01:00
parent 697b3a27bb
commit 24503bcbe5
6 changed files with 9 additions and 9 deletions

View file

@ -97,7 +97,7 @@ Describe containers using NixOS-style modules. There are a few options:
```nix
{ pkgs, ... }:
{
config.docker-compose.services = {
config.services = {
webserver = {
service.useHostStore = true;
@ -123,7 +123,7 @@ Describe containers using NixOS-style modules. There are a few options:
```nix
{
docker-compose.services.webserver = { config, pkgs, ... }: {
services.webserver = { config, pkgs, ... }: {
nixos.configuration = {config, pkgs, ...}: {
boot.isContainer = true;
@ -153,7 +153,7 @@ Describe containers using NixOS-style modules. There are a few options:
```nix
{
docker-compose.services.webserver = { pkgs, ... }: {
services.webserver = { pkgs, ... }: {
nixos.useSystemd = true;
nixos.configuration.boot.tmpOnTmpfs = true;
nixos.configuration.services.nginx.enable = true;
@ -170,7 +170,7 @@ Describe containers using NixOS-style modules. There are a few options:
```nix
{
docker-compose.services.postgres = {
services.postgres = {
service.image = "postgres:10";
service.volumes = [ "${toString ./.}/postgres-data:/var/lib/postgresql/data" ];
service.environment.POSTGRES_PASSWORD = "mydefaultpass";

View file

@ -1,5 +1,5 @@
{
docker-compose.services.webserver = { pkgs, ... }: {
services.webserver = { pkgs, ... }: {
nixos.useSystemd = true;
nixos.configuration.boot.tmpOnTmpfs = true;
nixos.configuration.services.nginx.enable = true;

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{
config.docker-compose.services = {
config.services = {
webserver = {
service.useHostStore = true;

View file

@ -17,7 +17,7 @@
*/
{
docker-compose.services.webserver = { config, pkgs, ... }: {
services.webserver = { config, pkgs, ... }: {
nixos.configuration = {config, pkgs, ...}: {
boot.isContainer = true;

View file

@ -1,5 +1,5 @@
{
docker-compose.services.webserver = { pkgs, ... }: {
services.webserver = { pkgs, ... }: {
nixos.useSystemd = true;
nixos.configuration.boot.tmpOnTmpfs = true;
nixos.configuration.services.nginx.enable = true;

View file

@ -1,6 +1,6 @@
/*
This service-level bind mounts the host store into the container
This service-level module bind mounts the host store into the container
when the service.useHostStore option is set to true.
*/