From 11bb10d1062470331f6d84b70097be91e97140d2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 Jan 2025 17:59:47 +0100 Subject: ... --- hosts/sif/hw.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix index d80f959c..cf3a0322 100644 --- a/hosts/sif/hw.nix +++ b/hosts/sif/hw.nix @@ -21,9 +21,12 @@ }; # system.etc.overlay.enable = false; - boot.initrd.systemd.contents."/etc/systemd/system/\\x2ebcachefs.mount.d/block_scan.conf".text = '' - Environment=BCACHEFS_BLOCK_SCAN=1 - ''; + boot.initrd.systemd.packages = { + (pkgs.writeTextDir "/etc/systemd/system/\\x2ebcachefs.mount.d/block_scan.conf" '' + [Mount] + Environment=BCACHEFS_BLOCK_SCAN=1 + '') + }; # boot.initrd.supportedFilesystems.bcachefs = true; # boot.initrd.systemd.units."dev-sif-nvm0:-dev-sif-nvm1.device".enable = false; -- cgit v1.2.3