it shouldn't install 'kde' (the package doesn't even exist)

axtloss/rework-partitioning
axtlos 3 years ago
parent 3cd7e5768f
commit 2cbb1e297a

@ -84,3 +84,7 @@ pub fn setup_timeshift() {
"setup timeshift", "setup timeshift",
) )
} }
pub fn install_homemgr() {
install(vec!["nix"]);
}

@ -34,7 +34,6 @@ pub fn choose_pkgs(desktop_setup: &str) {
"kde" => { "kde" => {
install(vec![ install(vec![
"xorg", "xorg",
"kde",
"plasma", "plasma",
"plasma-wayland-session", "plasma-wayland-session",
"kde-applications", "kde-applications",

@ -133,6 +133,10 @@ fn main() {
), ),
) )
) )
.subcommand(
SubCommand::with_name("nix")
.about("Install nix"),
)
.subcommand( .subcommand(
SubCommand::with_name("config") SubCommand::with_name("config")
.about("read a jade installation config") .about("read a jade installation config")
@ -199,9 +203,11 @@ fn main() {
base::genfstab(); base::genfstab();
} else if app.subcommand_matches("setup-timeshift").is_some() { } else if app.subcommand_matches("setup-timeshift").is_some() {
base::setup_timeshift(); base::setup_timeshift();
} else if app.subcommand_matches("nix").is_some() {
base::install_homemgr();
} else if let Some(app) = app.subcommand_matches("config") { } else if let Some(app) = app.subcommand_matches("config") {
crate::internal::config::read_config(app.value_of("config").unwrap()); crate::internal::config::read_config(app.value_of("config").unwrap());
} else { } else {
println!("Running TUI installer"); println!("{}", app.usage());
} }
} }

Loading…
Cancel
Save