nixos/waagent: provide waagent udev rules in initrd

This should make /dev/disk/azure appear in-initrd too.
This commit is contained in:
Florian Klink 2023-12-14 19:43:10 +02:00
parent 276939e0a1
commit f1c8d0709b

View file

@ -202,6 +202,13 @@ in
services.udev.packages = [ pkgs.waagent ];
# Provide waagent-shipped udev rules in initrd too.
boot.initrd.services.udev.packages = [ pkgs.waagent ];
# udev rules shell out to chmod, cut and readlink, which are all
# provided by pkgs.coreutils, which is in services.udev.path, but not
# boot.initrd.services.udev.binPackages.
boot.initrd.services.udev.binPackages = [ pkgs.coreutils ];
networking.dhcpcd.persistent = true;
services.logrotate = {