feat: kernel 6.13, emily's custom udev rule for passing through devices to vm, various app changes

This commit is contained in:
Evar 2025-01-31 22:38:03 -05:00
parent 9ac1768033
commit 3120f90b5d
8 changed files with 129 additions and 37 deletions

View file

@ -1,3 +1,4 @@
# from https://github.com/j-brn/nixos-vfio
{ std, lib, pkgs, config, ... }:
with lib;
@ -115,7 +116,20 @@ in {
};
config = mkIf cfg.enable {
boot.extraModulePackages = with config.boot.kernelPackages; [ kvmfr ];
# So I can build for kernel 6.13
# til https://github.com/gnif/LookingGlass/pull/1154 is merged
boot.extraModulePackages = with config.boot.kernelPackages; [
(kvmfr.overrideAttrs (old: {
patches = [ ]; # The patches have already since been merged
src = pkgs.fetchFromGitHub {
owner = "zeule";
repo = "LookingGlass";
rev = "7740692e3000c2019e21b9861585960174dd5ddc";
sha256 = "sha256-2ayH8FXOn4Bflf55WvhMWTDMLwvucmofD3POI72bC+Q=";
};
}))
];
services.udev.packages = optionals (cfg.devices != [ ]) [ udevPackage ];
environment.etc = {