nixos/filesystems: init squashfs
This commit is contained in:
parent
f93ea48c58
commit
3b6bc9b536
|
@ -1410,6 +1410,7 @@
|
||||||
./tasks/filesystems/nfs.nix
|
./tasks/filesystems/nfs.nix
|
||||||
./tasks/filesystems/ntfs.nix
|
./tasks/filesystems/ntfs.nix
|
||||||
./tasks/filesystems/reiserfs.nix
|
./tasks/filesystems/reiserfs.nix
|
||||||
|
./tasks/filesystems/squashfs.nix
|
||||||
./tasks/filesystems/unionfs-fuse.nix
|
./tasks/filesystems/unionfs-fuse.nix
|
||||||
./tasks/filesystems/vboxsf.nix
|
./tasks/filesystems/vboxsf.nix
|
||||||
./tasks/filesystems/vfat.nix
|
./tasks/filesystems/vfat.nix
|
||||||
|
|
13
nixos/modules/tasks/filesystems/squashfs.nix
Normal file
13
nixos/modules/tasks/filesystems/squashfs.nix
Normal 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" ];
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue