udev rules for tuxedo drivers (#444087)
This commit is contained in:
@@ -31,5 +31,6 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot.kernelModules = [ "tuxedo_keyboard" ];
|
||||
boot.extraModulePackages = [ tuxedo-drivers ];
|
||||
services.udev.packages = [ tuxedo-drivers ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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/*
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user