♻️ refactor
This commit is contained in:
parent
5884c6ca8f
commit
86cf3edb90
4 changed files with 56 additions and 44 deletions
|
@ -17,7 +17,7 @@ pub fn setup_video_drivers(vendor: &GPUVendor) {
|
|||
}
|
||||
GPUVendor::INTEL => {
|
||||
install_pkgs(&[
|
||||
"xf86-video-intel2",
|
||||
"xf86-video-intel",
|
||||
"mesa",
|
||||
"lib32-mesa",
|
||||
"vulkan-intel",
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// TODO : Autojoin docker swarm
|
||||
// TODO : Autojoin teleport
|
||||
// TODO : Install CA certs
|
||||
// TODO : Install node exporter
|
||||
// TODO : ZFS?
|
||||
|
||||
// DRIVE SELECTION
|
||||
|
||||
|
@ -42,6 +45,10 @@ pub mod user;
|
|||
pub mod virt;
|
||||
pub mod zram;
|
||||
|
||||
// TODO : error handling
|
||||
// TODO : Power profile daemon
|
||||
// TODO : Make zsh default + completions
|
||||
|
||||
use crate::{
|
||||
config::InstallConfig,
|
||||
pkg::{self, install_pkgs, pacstrap},
|
||||
|
|
|
@ -12,7 +12,7 @@ pub fn setup_virtualization(conf: &InstallConfig) {
|
|||
Vec::new()
|
||||
};
|
||||
|
||||
install_pkgs(&["libvirt"]);
|
||||
install_pkgs(&["libvirt", "swtpm", "qemu-base"]);
|
||||
|
||||
if matches!(conf.general.mode, InstallMode::Desktop) {
|
||||
install_pkgs(&["virt-manager"]);
|
||||
|
@ -34,9 +34,7 @@ pub fn setup_virtualization(conf: &InstallConfig) {
|
|||
/// Setup guest utils if running inside a VM
|
||||
pub fn setup_vm() {
|
||||
let res = run_command(&["systemd-detect-virt", "--vm"], None, false);
|
||||
let is_vm = res
|
||||
.0
|
||||
.trim();
|
||||
let is_vm = res.0.trim();
|
||||
|
||||
match is_vm {
|
||||
"qemu" | "kvm" => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue