|
|
@ -15,6 +15,7 @@ struct Config {
|
|
|
|
rootpass: String,
|
|
|
|
rootpass: String,
|
|
|
|
desktop: Option<DesktopSetup>,
|
|
|
|
desktop: Option<DesktopSetup>,
|
|
|
|
timeshift: bool,
|
|
|
|
timeshift: bool,
|
|
|
|
|
|
|
|
flatpak: bool,
|
|
|
|
extra_packages: Vec<String>,
|
|
|
|
extra_packages: Vec<String>,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -144,6 +145,11 @@ pub fn read_config(configpath: PathBuf) {
|
|
|
|
if config.timeshift {
|
|
|
|
if config.timeshift {
|
|
|
|
base::setup_timeshift();
|
|
|
|
base::setup_timeshift();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
println!();
|
|
|
|
|
|
|
|
log::info!("Enabling flatpak : {}", config.flatpak);
|
|
|
|
|
|
|
|
if config.flatpak {
|
|
|
|
|
|
|
|
base::setup_flatpak();
|
|
|
|
|
|
|
|
}
|
|
|
|
log::info!("Extra packages : {:?}", config.extra_packages);
|
|
|
|
log::info!("Extra packages : {:?}", config.extra_packages);
|
|
|
|
let mut extra_packages: Vec<&str> = Vec::new();
|
|
|
|
let mut extra_packages: Vec<&str> = Vec::new();
|
|
|
|
for i in 0..config.extra_packages.len() {
|
|
|
|
for i in 0..config.extra_packages.len() {
|
|
|
|