nixos/filesystems: init squashfs

This commit is contained in:
nikstur 2023-07-04 17:06:49 +02:00 committed by Bjørn Forsman
parent f93ea48c58
commit 3b6bc9b536
2 changed files with 14 additions and 0 deletions

View file

@ -1410,6 +1410,7 @@
./tasks/filesystems/nfs.nix
./tasks/filesystems/ntfs.nix
./tasks/filesystems/reiserfs.nix
./tasks/filesystems/squashfs.nix
./tasks/filesystems/unionfs-fuse.nix
./tasks/filesystems/vboxsf.nix
./tasks/filesystems/vfat.nix

View file

@ -0,0 +1,13 @@
{ config, lib, ... }:
let
inInitrd = lib.any (fs: fs == "squashfs") config.boot.initrd.supportedFilesystems;
in
{
boot.initrd.availableKernelModules = lib.mkIf inInitrd [ "squashfs" ];
}