diff --git a/src/functions/base.rs b/src/functions/base.rs index 667a714..c3ab418 100755 --- a/src/functions/base.rs +++ b/src/functions/base.rs @@ -84,3 +84,7 @@ pub fn setup_timeshift() { "setup timeshift", ) } + +pub fn install_homemgr() { + install(vec!["nix"]); +} \ No newline at end of file diff --git a/src/functions/desktops.rs b/src/functions/desktops.rs index c6499c5..1db185b 100755 --- a/src/functions/desktops.rs +++ b/src/functions/desktops.rs @@ -34,7 +34,6 @@ pub fn choose_pkgs(desktop_setup: &str) { "kde" => { install(vec![ "xorg", - "kde", "plasma", "plasma-wayland-session", "kde-applications", diff --git a/src/main.rs b/src/main.rs index e98cc35..40088c6 100755 --- a/src/main.rs +++ b/src/main.rs @@ -133,6 +133,10 @@ fn main() { ), ) ) + .subcommand( + SubCommand::with_name("nix") + .about("Install nix"), + ) .subcommand( SubCommand::with_name("config") .about("read a jade installation config") @@ -199,9 +203,11 @@ fn main() { base::genfstab(); } else if app.subcommand_matches("setup-timeshift").is_some() { base::setup_timeshift(); + } else if app.subcommand_matches("nix").is_some() { + base::install_homemgr(); } else if let Some(app) = app.subcommand_matches("config") { crate::internal::config::read_config(app.value_of("config").unwrap()); } else { - println!("Running TUI installer"); + println!("{}", app.usage()); } }