@ -276,12 +276,7 @@ fn install_kde() {
}
fn install_gnome() {
install(vec![
"xorg",
"gnome",
"sushi",
"gdm"
]);
install(vec!["xorg", "gnome", "sushi", "gdm"]);
enable_dm("gdm");
@ -55,7 +55,11 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo
format!("Add user {} to wheel group", username).as_str(),
);
files_eval(
files::sed_file("/mnt/etc/sudoers", "# %wheel ALL=(ALL) ALL", "%wheel ALL=(ALL) ALL"),
files::sed_file(
"/mnt/etc/sudoers",
"# %wheel ALL=(ALL) ALL",
"%wheel ALL=(ALL) ALL",
),
"Add wheel group to sudoers",
@ -10,7 +10,7 @@ pub fn exec_chroot(
args: Vec<String>,
) -> Result<std::process::ExitStatus, std::io::Error> {
let returncode = Command::new("bash")
.args(&[
.args([
"-c",
format!("arch-chroot /mnt {} {}", command, args.join(" ")).as_str(),
])