mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
nixos/filesystems: init squashfs
This commit is contained in:
parent
f93ea48c58
commit
3b6bc9b536
@ -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
|
||||
|
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 New Issue
Block a user