default bootstrap Config
This commit is contained in:
@ -36,6 +36,29 @@ pub struct Config {
|
|||||||
pub bootstrap: Bootstrap,
|
pub bootstrap: Bootstrap,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Config {
|
||||||
|
pub fn new(bootstrap_dev: String) -> Self {
|
||||||
|
Self {
|
||||||
|
anti_phishing_code: "Direktil<3".into(),
|
||||||
|
keymap: None,
|
||||||
|
modules: None,
|
||||||
|
resolv_conf: None,
|
||||||
|
vpns: Map::new(),
|
||||||
|
networks: vec![],
|
||||||
|
auths: vec![],
|
||||||
|
ssh: Default::default(),
|
||||||
|
pre_lvm_crypt: vec![],
|
||||||
|
lvm: vec![],
|
||||||
|
crypt: vec![],
|
||||||
|
signer_public_key: None,
|
||||||
|
bootstrap: Bootstrap {
|
||||||
|
dev: bootstrap_dev,
|
||||||
|
seed: None,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||||
pub struct Auth {
|
pub struct Auth {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user