add config.boot.initramfs.enable

module-based-network
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 let
# inherit (lib) mkOption types concatStringsSep; inherit (lib) mkEnableOption mkIf;
inherit (pkgs) runCommand callPackage writeText; inherit (pkgs) runCommand callPackage writeText;
in in
{ {
config = { options = {
boot.initramfs = {
enable = mkEnableOption "enable initramfs";
default = false;
};
};
config = mkIf config.boot.initramfs.enable {
kernel.config.BLK_DEV_INITRD = "y"; kernel.config.BLK_DEV_INITRD = "y";
outputs = { outputs = {

View File

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