2024-12-28 00:33:50 +01:00
|
|
|
use crate::{install::str_vec, run_command};
|
|
|
|
|
2024-12-27 22:51:32 +01:00
|
|
|
pub const DESKTOP_PKG: [&str; 2] = ["plasma", "sddm"];
|
|
|
|
|
|
|
|
pub const SERVER_PKG: [&str; 1] = ["tmux"];
|
2024-12-28 00:33:50 +01:00
|
|
|
|
|
|
|
pub fn install_pkgs(pkg: &[&str]) {
|
|
|
|
let mut cmd = vec!["arch-chroot", "/mnt", "pacman", "-Syu"];
|
|
|
|
|
|
|
|
cmd.push("--noconfirm");
|
|
|
|
cmd.extend_from_slice(pkg);
|
|
|
|
|
|
|
|
run_command(&str_vec(cmd), None, true);
|
|
|
|
}
|