Enables virtualization features for glassbox, adds kde-polkit

This commit is contained in:
willemml 2024-02-16 09:28:58 -08:00
parent 3a7b53fb17
commit 435479730a
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
2 changed files with 18 additions and 0 deletions

View file

@ -21,6 +21,7 @@ in {
then firefox-wv
else firefox
)
polkit-kde-agent
lxappearance
pipewire
polkit-kde-agent
@ -79,6 +80,8 @@ in {
"${pkgs.wl-clipboard}/bin/wl-paste | ${pkgs.wl-clipboard}/bin/wl-copy -p"
"${pkgs.swaynotificationcenter}/bin/swaync"
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
];
xwayland.force_zero_scaling = true;

View file

@ -20,6 +20,21 @@
boot.kernelParams = let vfio-pci-devs = ["10de:2482" "10de:228b"]; in ["intel_iommu=on" ("vfio-pci.ids=" + lib.concatStringsSep "," vfio-pci-devs)];
virtualisation.libvirtd = {
enable = true;
qemu.ovmf.enable = true;
qemu.swtpm.enable = true;
qemu.ovmf.packages = [
(pkgs.OVMF.override (old: {
secureBoot = true;
tpmSupport = true;
}))
.fd
];
};
environment.systemPackages = with pkgs; [virt-manager libvirt];
virtualisation.spiceUSBRedirection.enable = true;
boot.loader.systemd-boot.enable = true;