From e1e8ae5d4437e471f9daec97ace2f43e5e38a4e8 Mon Sep 17 00:00:00 2001 From: axtlos Date: Sat, 25 Feb 2023 14:22:52 +0100 Subject: [PATCH] Enable bluetooth & cups, preinstall xdg-user-dirs --- src/functions/base.rs | 17 +++++++++++++++++ src/functions/desktops.rs | 5 +++++ 2 files changed, 22 insertions(+) diff --git a/src/functions/base.rs b/src/functions/base.rs index 17ca087..5f6fdef 100755 --- a/src/functions/base.rs +++ b/src/functions/base.rs @@ -67,6 +67,23 @@ pub fn install_base_packages(kernel: String) { "ttf-liberation", ]); files::copy_file("/etc/pacman.conf", "/mnt/etc/pacman.conf"); + + exec_eval( + exec_chroot( + "systemctl", + vec![String::from("enable"), String::from("bluetooth")], + ), + "Enable bluetooth", + ); + + exec_eval( + exec_chroot( + "systemctl", + vec![String::from("enable"), String::from("cups")] + ), + "Enable CUPS" + ); + } pub fn genfstab() { diff --git a/src/functions/desktops.rs b/src/functions/desktops.rs index 7d43b71..30c60d1 100644 --- a/src/functions/desktops.rs +++ b/src/functions/desktops.rs @@ -44,6 +44,7 @@ fn install_bspwm() { "lightdm", "lightdm-gtk-greeter", "lightdm-gtk-greeter-settings", + "xdg-user-dirs" ]); files_eval( files::append_file( @@ -65,6 +66,7 @@ fn install_awesome() { "lightdm", "lightdm-gtk-greeter", "lightdm-gtk-greeter-settings", + "xdg-user-dirs" ]); files_eval( files::append_file( @@ -86,6 +88,7 @@ fn install_herbstluftwm() { "lightdm", "lightdm-gtk-greeter", "lightdm-gtk-greeter-settings", + "xdg-user-dirs" ]); files_eval( files::append_file( @@ -108,6 +111,7 @@ fn install_i3() { "lightdm", "lightdm-gtk-greeter", "lightdm-gtk-greeter-settings", + "xdg-user-dirs" ]); files_eval( files::append_file( @@ -134,6 +138,7 @@ fn install_sway() { "pipewire-jack", "wireplumber", "sddm", + "xdg-user-dirs" ]); enable_dm("sddm"); }