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 = {
enable = mkEnableOption "initramfs";
};
system.outputs.initramfs = mkOption {
system.outputs = {
initramfs = mkOption {
type = types.package;
internal = true;
description = ''
Initramfs image capable of mounting the jffs2 root
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 {
kernel.config = {

View file

@ -11,16 +11,6 @@ in
imports = [
./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") {
kernel.config = {