about summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorMadoura <madouura@gmail.com>2024-01-09 09:09:32 -0600
committerMadoura <madouura@gmail.com>2024-01-16 15:19:39 -0600
commitc3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03 (patch)
tree40d8a7f19ff0b5c1290ed3b1fc67ee711a039e31 /nixos/modules/tasks
parent6b8dc42ee1218515c17a8527e659368e58e7da39 (diff)
downloadnixlib-c3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03.tar
nixlib-c3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03.tar.gz
nixlib-c3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03.tar.bz2
nixlib-c3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03.tar.lz
nixlib-c3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03.tar.xz
nixlib-c3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03.tar.zst
nixlib-c3316bcce4ba7ead40a04b2c7aa9c6aeb33c4a03.zip
nixos/bcachefs: add 'bcachefs-tools' to (udev/systemd).packages
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/filesystems/bcachefs.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/bcachefs.nix b/nixos/modules/tasks/filesystems/bcachefs.nix
index c696ddfc24f6..3b990ce30b21 100644
--- a/nixos/modules/tasks/filesystems/bcachefs.nix
+++ b/nixos/modules/tasks/filesystems/bcachefs.nix
@@ -125,7 +125,12 @@ in
       system.fsPackages = [ pkgs.bcachefs-tools ];
       # FIXME: Remove this line when the LTS (default) kernel is at least version 6.7
       boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
-      systemd.services = lib.mapAttrs' (mkUnits "") (lib.filterAttrs (n: fs: (fs.fsType == "bcachefs") && (!utils.fsNeededForBoot fs)) config.fileSystems);
+      services.udev.packages = [ pkgs.bcachefs-tools ];
+
+      systemd = {
+        packages = [ pkgs.bcachefs-tools ];
+        services = lib.mapAttrs' (mkUnits "") (lib.filterAttrs (n: fs: (fs.fsType == "bcachefs") && (!utils.fsNeededForBoot fs)) config.fileSystems);
+      };
     }
 
     (lib.mkIf ((lib.elem "bcachefs" config.boot.initrd.supportedFilesystems) || (bootFs != {})) {