udev rules for tuxedo drivers (#444087)

This commit is contained in:
Ramses
2025-10-13 19:39:12 +00:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -31,5 +31,6 @@ in
config = lib.mkIf cfg.enable {
boot.kernelModules = [ "tuxedo_keyboard" ];
boot.extraModulePackages = [ tuxedo-drivers ];
services.udev.packages = [ tuxedo-drivers ];
};
}

View File

@@ -8,6 +8,7 @@
pahole,
gitUpdater,
udevCheckHook,
bash,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -26,6 +27,9 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
echo "Running postInstallhook"
substituteInPlace usr/lib/udev/rules.d/* \
--replace-quiet "/bin/bash" "${lib.getExe bash}" \
--replace-quiet "/bin/sh" "${lib.getExe bash}"
install -Dm 0644 -t $out/etc/udev/rules.d usr/lib/udev/rules.d/*
'';