add config.boot.initramfs.enable
This commit is contained in:
parent
07eb3d66da
commit
63a89f7d0d
2 changed files with 9 additions and 2 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue