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
|
||||
# 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 = {
|
||||
|
|
|
@ -12,6 +12,7 @@ in
|
|||
];
|
||||
config = {
|
||||
kernel.config.JFFS2_FS = "y";
|
||||
boot.initramfs.enable = true;
|
||||
outputs = rec {
|
||||
systemConfiguration =
|
||||
pkgs.pkgsBuildBuild.systemconfig config.filesystem.contents;
|
||||
|
|
Loading…
Reference in a new issue