summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-21 11:29:19 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-21 11:37:16 +0200
commite95fa37f9aef7bb038d9490e697cd1d71dd1f84f (patch)
tree3ad51d9f1de7a6cedfada18964a5869ce44d7c4e /src/config.rs
parentb905e6d9ccc69781fc34d3b31a627cb5eacdabcf (diff)
downloadvmadm-e95fa37f9aef7bb038d9490e697cd1d71dd1f84f.tar.gz
feat: optionally mark new VM as autostarted
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 9894f45..88c186b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -24,6 +24,9 @@ pub struct Configuration {
/// Should host certificates be generated for new VMs?
pub default_generate_host_certificate: Option<bool>,
+ /// Should new VM be started automatically on host boot?
+ pub default_autostart: Option<bool>,
+
/// Directory where new VM images should be created, if given.
pub image_directory: Option<PathBuf>,