From 04beb061642a720e1de097678e0add14b40aa4a0 Mon Sep 17 00:00:00 2001 From: beviu Date: Wed, 15 Apr 2026 17:46:46 +0200 Subject: [PATCH] nixos/bcachefs: add upstream Systemd units to initrd The bcachefs-wait-devices@.service unit can be added as a Wants dependency to a .mount units to wait until every device in the filesystem is initialized before doing the mount. --- nixos/modules/tasks/filesystems/bcachefs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/tasks/filesystems/bcachefs.nix b/nixos/modules/tasks/filesystems/bcachefs.nix index 7dfa2f2f62c8..bb338bc992c9 100644 --- a/nixos/modules/tasks/filesystems/bcachefs.nix +++ b/nixos/modules/tasks/filesystems/bcachefs.nix @@ -289,6 +289,7 @@ in commonFunctions + lib.concatStrings (lib.mapAttrsToList openCommand bootFs) ); + boot.initrd.systemd.packages = [ cfg.package ]; boot.initrd.systemd.services = lib.mapAttrs' (mkUnits "/sysroot") bootFs; })