diff options
author | nikstur <nikstur@outlook.com> | 2023-07-04 17:06:49 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-07-10 22:02:36 +0200 |
commit | 3b6bc9b536dd09c91de596b3028fe6a468372865 (patch) | |
tree | 49e370ba3b73ef6b4d17886d79034cb871eb8a18 | |
parent | f93ea48c582b4608647f4decfc3e2cb4bdf2966f (diff) | |
download | nixpkgs-3b6bc9b536dd09c91de596b3028fe6a468372865.tar nixpkgs-3b6bc9b536dd09c91de596b3028fe6a468372865.tar.gz nixpkgs-3b6bc9b536dd09c91de596b3028fe6a468372865.tar.bz2 nixpkgs-3b6bc9b536dd09c91de596b3028fe6a468372865.tar.lz nixpkgs-3b6bc9b536dd09c91de596b3028fe6a468372865.tar.xz nixpkgs-3b6bc9b536dd09c91de596b3028fe6a468372865.tar.zst nixpkgs-3b6bc9b536dd09c91de596b3028fe6a468372865.zip |
nixos/filesystems: init squashfs
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/tasks/filesystems/squashfs.nix | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index aa8c2e67073..73242f22b0d 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 00000000000..10d45a21d3c --- /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" ]; + +} |