From 3b6bc9b536dd09c91de596b3028fe6a468372865 Mon Sep 17 00:00:00 2001 From: nikstur Date: Tue, 4 Jul 2023 17:06:49 +0200 Subject: [PATCH] nixos/filesystems: init squashfs --- nixos/modules/module-list.nix | 1 + nixos/modules/tasks/filesystems/squashfs.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 nixos/modules/tasks/filesystems/squashfs.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index aa8c2e67073e..73242f22b0dc 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -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 diff --git a/nixos/modules/tasks/filesystems/squashfs.nix b/nixos/modules/tasks/filesystems/squashfs.nix new file mode 100644 index 000000000000..10d45a21d3ca --- /dev/null +++ b/nixos/modules/tasks/filesystems/squashfs.nix @@ -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" ]; + +}