mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 17:49:58 +03:00
14 lines
197 B
Nix
14 lines
197 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
inInitrd = lib.any (fs: fs == "squashfs") config.boot.initrd.supportedFilesystems;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
boot.initrd.availableKernelModules = lib.mkIf inInitrd [ "squashfs" ];
|
|
|
|
}
|