So much shit I cba to make commits

This commit is contained in:
blahai 2024-11-17 00:07:01 +02:00
parent b5983eb5f1
commit 8527a1396c
No known key found for this signature in database
7 changed files with 117 additions and 118 deletions

View file

@ -15,6 +15,7 @@
hyprpicker
pwvucontrol
which
python312Packages.gpustat
];
programs.ags = {
@ -27,6 +28,7 @@
# additional packages to add to gjs's runtime
extraPackages = with pkgs; [
accountsservice
gtk-session-lock
];
};
}

View file

@ -46,7 +46,7 @@
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
mesa
mesa.drivers
egl-wayland
rocmPackages.clr.icd
amdvlk

View file

@ -1,7 +1,6 @@
{ pkgs, lib, config, ... }:
{
{ pkgs, lib, config, ... }: {
boot = {
initrd.kernelModules = lib.mkBefore [
initrd.kernelModules = lib.mkBefore [
"kvm-amd"
"vfio_pci"
"vfio_iommu_type1"
@ -9,7 +8,7 @@
"amdgpu"
];
kernelParams = [
kernelParams = [
"amd_iommu=on"
"amd_iommu=pt"
"kvm.ignore_msrs=1"
@ -17,9 +16,13 @@
];
extraModprobeConfig = ''
softdep drm pre: vfio-pci
options kvm_amd nested=1
options kvm ignore_msrs=1 report_ignored_msrs=0
'';
};
hardware.ksm.enable = true;
virtualisation = {
libvirtd = {
enable = true;
@ -32,22 +35,21 @@
};
};
docker = {
enable = true;
};
docker = { enable = true; };
};
programs = {
virt-manager = {
enable = true;
};
};
programs = { virt-manager = { enable = true; }; };
users.users.pingu.extraGroups = [ "qemu-libvirtd" "libvirtd" "disk" "kvm" "docker" ];
users.users.pingu.extraGroups =
[ "qemu-libvirtd" "libvirtd" "disk" "kvm" "docker" ];
environment.systemPackages = with pkgs; [
python3 # scripts, cba to use nix shell all the time
usbutils
pciutils
virt-manager
moonlight-qt # for linux vms
looking-glass-client # for windows vms :husk:
];
}