♻️ refactor

This commit is contained in:
JMARyA 2025-03-17 14:46:28 +01:00
parent 5884c6ca8f
commit 86cf3edb90
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 56 additions and 44 deletions

View file

@ -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",

View file

@ -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},

View file

@ -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" => {