From 12662956d155c75dbbbdb72e3f3691169475faae Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 21 May 2023 15:39:00 +0200 Subject: [PATCH] module: add diskoScript output, deprecated disko output --- module.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/module.nix b/module.nix index 4529b0d..fb765ac 100644 --- a/module.nix +++ b/module.nix @@ -47,7 +47,15 @@ in ${diskoLib.mount cfg.devices} ''; - system.build.disko = (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko" '' + # we keep this old output for compatibility + system.build.disko = builtins.trace "this output is deprecated, plase use .diskoScript instead" ( + (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko" '' + export PATH=${lib.makeBinPath (diskoLib.packages cfg.devices pkgs)}:$PATH + ${diskoLib.zapCreateMount cfg.devices} + '' + ); + + system.build.diskoScript = (diskoLib.writeCheckedBash { inherit pkgs checked; }) "disko" '' export PATH=${lib.makeBinPath (diskoLib.packages cfg.devices pkgs)}:$PATH ${diskoLib.zapCreateMount cfg.devices} '';