rename config.outputs to config.system.outputs

New rules: everything under "config" that isn't actually configuration
(e.g. build products) will in future live in config.system. This is
the first step.
This commit is contained in:
Daniel Barlow 2023-07-13 19:24:59 +01:00
parent 492317623d
commit 2e50368bd2
13 changed files with 236 additions and 122 deletions

View file

@ -5,12 +5,23 @@
, ...
}:
let
inherit (lib) mkIf;
inherit (lib) mkIf mkOption types;
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 = {
JFFS2_FS = "y";
@ -21,7 +32,7 @@ in
JFFS2_CMODE_SIZE = "y";
};
boot.initramfs.enable = true;
outputs = rec {
system.outputs = rec {
systemConfiguration =
pkgs.systemconfig config.filesystem.contents;
rootfs =