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,13 +13,23 @@ in
boot.initramfs = { boot.initramfs = {
enable = mkEnableOption "initramfs"; enable = mkEnableOption "initramfs";
}; };
system.outputs.initramfs = mkOption { system.outputs = {
type = types.package; initramfs = mkOption {
internal = true; type = types.package;
description = '' internal = true;
Initramfs image capable of mounting the jffs2 root description = ''
filesystem Initramfs image capable of mounting the real root
''; 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 {

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 = {