add config.boot.initramfs.enable

This commit is contained in:
Daniel Barlow 2023-04-10 19:07:27 +01:00
parent 07eb3d66da
commit 63a89f7d0d
2 changed files with 9 additions and 2 deletions

View file

@ -5,11 +5,17 @@
, ...
}:
let
# inherit (lib) mkOption types concatStringsSep;
inherit (lib) mkEnableOption mkIf;
inherit (pkgs) runCommand callPackage writeText;
in
{
config = {
options = {
boot.initramfs = {
enable = mkEnableOption "enable initramfs";
default = false;
};
};
config = mkIf config.boot.initramfs.enable {
kernel.config.BLK_DEV_INITRD = "y";
outputs = {

View file

@ -12,6 +12,7 @@ in
];
config = {
kernel.config.JFFS2_FS = "y";
boot.initramfs.enable = true;
outputs = rec {
systemConfiguration =
pkgs.pkgsBuildBuild.systemconfig config.filesystem.contents;