Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
b11e752c02 | |||
876909959c |
3 changed files with 15 additions and 0 deletions
|
@ -105,6 +105,9 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imports = [ ./nixpkgs.nix ];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
# By default, we enable cross-compilation support.
|
# By default, we enable cross-compilation support.
|
||||||
nixpkgs.buildPlatform = lib.mkDefault builtins.currentSystem;
|
nixpkgs.buildPlatform = lib.mkDefault builtins.currentSystem;
|
||||||
|
|
|
@ -330,6 +330,8 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imports = [ ./misc/assertions.nix ];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
_module.args = {
|
_module.args = {
|
||||||
|
|
|
@ -13,6 +13,14 @@ in
|
||||||
boot.initramfs = {
|
boot.initramfs = {
|
||||||
enable = mkEnableOption "initramfs";
|
enable = mkEnableOption "initramfs";
|
||||||
};
|
};
|
||||||
|
system.build.toplevel = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
description = ''
|
||||||
|
pkgs.systemconfig for the configured filesystem,
|
||||||
|
contains 'activate' and 'init' commands
|
||||||
|
'';
|
||||||
|
internal = true;
|
||||||
|
};
|
||||||
system.outputs = {
|
system.outputs = {
|
||||||
initramfs = mkOption {
|
initramfs = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
|
@ -39,6 +47,8 @@ in
|
||||||
INITRAMFS_COMPRESSION_ZSTD = "y";
|
INITRAMFS_COMPRESSION_ZSTD = "y";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.build.toplevel = config.system.outputs.systemConfiguration;
|
||||||
|
|
||||||
system.outputs = {
|
system.outputs = {
|
||||||
initramfs =
|
initramfs =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue