Merge pull request #5729 from mokasin/containers

Add auto-start option to containers.
This commit is contained in:
Eelco Dolstra 2015-01-13 12:43:56 +01:00
commit 8a04ca52cd

View File

@ -111,6 +111,13 @@ in
'';
};
autoStart = mkOption {
type = types.bool;
default = false;
description = ''
Wether the container is automatically started at boot-time.
'';
};
};
config = mkMerge
@ -305,6 +312,9 @@ in
LOCAL_ADDRESS=${cfg.localAddress}
''}
''}
${optionalString cfg.autoStart ''
AUTO_START=1
''}
'';
}) config.containers;