options.system.outputs.initramfs -> initramfs module

This commit is contained in:
Daniel Barlow 2023-10-30 21:23:50 +00:00
parent c5c5f1687a
commit 92b9bf959e
2 changed files with 17 additions and 17 deletions

View file

@ -13,14 +13,24 @@ in
boot.initramfs = { boot.initramfs = {
enable = mkEnableOption "initramfs"; enable = mkEnableOption "initramfs";
}; };
system.outputs.initramfs = mkOption { system.outputs = {
initramfs = mkOption {
type = types.package; type = types.package;
internal = true; internal = true;
description = '' description = ''
Initramfs image capable of mounting the jffs2 root Initramfs image capable of mounting the real root
filesystem filesystem
''; '';
}; };
systemConfiguration = mkOption {
type = types.package;
description = ''
pkgs.systemconfig for the configured filesystem,
contains 'activate' and 'init' commands
'';
internal = true;
};
};
}; };
config = mkIf config.boot.initramfs.enable { config = mkIf config.boot.initramfs.enable {
kernel.config = { kernel.config = {

View file

@ -11,16 +11,6 @@ in
imports = [ imports = [
./initramfs.nix ./initramfs.nix
]; ];
options.system.outputs = {
systemConfiguration = mkOption {
type = types.package;
description = ''
pkgs.systemconfig for the configured filesystem,
contains 'activate' and 'init' commands
'';
internal = true;
};
};
config = mkIf (config.rootfsType == "jffs2") { config = mkIf (config.rootfsType == "jffs2") {
kernel.config = { kernel.config = {