mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
lib.mkIf config.hardware.librem5.lockdownFix {
|
||||
# We blacklist the drivers so they don't load during early boot when the sensors are disconnected,
|
||||
boot.blacklistedKernelModules = [
|
||||
@@ -17,10 +22,10 @@ lib.mkIf config.hardware.librem5.lockdownFix {
|
||||
};
|
||||
|
||||
# udev rules from librem5-base handle going into "lockdown mode" and back.
|
||||
assertions = [{
|
||||
assertion = with config.hardware.librem5;
|
||||
lockdownFix -> installUdevPackages;
|
||||
message =
|
||||
"'hardware.librem5.lockdownFix' requires 'hardware.librem5.installUdevPackages', but it is not enabled.";
|
||||
}];
|
||||
assertions = [
|
||||
{
|
||||
assertion = with config.hardware.librem5; lockdownFix -> installUdevPackages;
|
||||
message = "'hardware.librem5.lockdownFix' requires 'hardware.librem5.installUdevPackages', but it is not enabled.";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user