module: add images to system.build

This commit is contained in:
lassulus 2023-09-10 14:48:41 +02:00 committed by mergify[bot]
parent 10fb975003
commit 56e6cad143

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, extendModules, ... }:
{ config, lib, pkgs, extendModules, ... }@args:
let
diskoLib = import ./lib {
inherit lib;
@ -71,6 +71,13 @@ in
disko = builtins.trace "the .disko output is deprecated, please use .diskoScript instead" (cfg.devices._scripts pkgs).diskoScript;
diskoNoDeps = builtins.trace "the .diskoNoDeps output is deprecated, please use .diskoScriptNoDeps instead" (cfg.devices._scripts pkgs).diskoScriptNoDeps;
diskoImages = diskoLib.makeDiskImage {
nixosConfig = args;
};
diskoImageScript = diskoLib.makeDiskImageScript {
nixosConfig = args;
};
installTest = diskoLib.testLib.makeDiskoTest {
inherit extendModules pkgs;
name = "${config.networking.hostName}-disko";