mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
module: add images to system.build
This commit is contained in:
parent
10fb975003
commit
56e6cad143
1 changed files with 8 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue