mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 11:03:37 +03:00
3d0552223d
The examples/hello system can be used by users that want to boot a minimal, and cross-compilable system. This is better than a "raw" build of the root of the Mobile NixOS repo since it provides a stage-2 application stating the system booted successfully.
18 lines
460 B
Nix
18 lines
460 B
Nix
# This works around an issue on at least one device (motorola-addison) where
|
|
# the v4l_id tool from udev hangs for more than a minute on boot.
|
|
#
|
|
# This replaces the file from udev with an empty one.
|
|
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
emptyV4lRules = pkgs.runCommandNoCC "empty-v4l-rules" {} ''
|
|
mkdir -p $out/lib/udev/rules.d
|
|
touch $out/lib/udev/rules.d/60-persistent-v4l.rules
|
|
'';
|
|
in
|
|
{
|
|
services.udev.packages = lib.mkOrder 10000 [
|
|
emptyV4lRules
|
|
];
|
|
}
|