File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
modules/services/hardware Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 5555 preferLocalBuild = true ;
5656 allowSubstitutes = false ;
5757 packages = lib . unique ( map toString udevPackages ) ;
58+
59+ nativeBuildInputs = [
60+ # We only include the out output here to avoid needing to include all
61+ # other outputs in the installer tests as well
62+ # We only need the udevadm command anyway
63+ pkgs . systemdMinimal . out
64+ ] ;
5865 }
5966 ''
6067 mkdir -p $out
147154 exit 1
148155 fi
149156
157+ # Verify all the udev rules
158+ echo "Verifying udev rules using udevadm verify..."
159+ udevadm verify --resolve-names=never --no-style $out
160+ echo "OK"
161+
150162 # If auto-configuration is disabled, then remove
151163 # udev's 80-drivers.rules file, which contains rules for
152164 # automatically calling modprobe.
Original file line number Diff line number Diff line change 681681 {
682682 # The configuration of the system used to run "nixos-install".
683683 installer =
684- { config , ... } :
684+ { config , pkgs , ... } :
685685 {
686686 imports = [
687687 commonConfig
740740 xorg . lndir
741741 shellcheck-minimal
742742
743+ # Only the out output is included here, which is what is
744+ # required to build the NixOS udev rules
745+ # See the comment in services/hardware/udev.nix
746+ systemdMinimal . out
747+
743748 # add curl so that rather than seeing the test attempt to download
744749 # curl's tarball, we see what it's trying to download
745750 curl
You can’t perform that action at this time.
0 commit comments