mirror of
https://github.com/nix-community/disko.git
synced 2026-12-06 16:03:28 +01:00
fix broken fallback
fixes an error when using this minimal configuration: ```nix let pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.11") { }; disko = fetchTarball "https://github.com/nix-community/disko/tarball/master"; in pkgs.nixos { imports = [ "${disko}/module.nix" "${disko}/example/hybrid.nix" ]; } ``` when running: ```console $ nix-build ... error: 'default' at /nix/store/y981rwszq9yi36rvvz2vrr6hb22si0hc-source/lib/default.nix:391:23 called with unexpected argument 'system' ```
This commit is contained in:
1 parent
a050895e4e
commit
2890a8c922
1 file changed
+2
-2
+2
-2
@@ -90,8 +90,8 @@ in
|
|||||||
system.build = (cfg.devices._scripts { inherit pkgs; checked = cfg.checkScripts; }) // {
|
system.build = (cfg.devices._scripts { inherit pkgs; checked = cfg.checkScripts; }) // {
|
||||||
|
|
||||||
# we keep these old outputs for compatibility
|
# we keep these old outputs for compatibility
|
||||||
disko = builtins.trace "the .disko output is deprecated, please use .diskoScript instead" (cfg.devices._scripts pkgs).diskoScript;
|
disko = builtins.trace "the .disko output is deprecated, please use .diskoScript instead" (cfg.devices._scripts { inherit pkgs; }).diskoScript;
|
||||||
diskoNoDeps = builtins.trace "the .diskoNoDeps output is deprecated, please use .diskoScriptNoDeps instead" (cfg.devices._scripts pkgs).diskoScriptNoDeps;
|
diskoNoDeps = builtins.trace "the .diskoNoDeps output is deprecated, please use .diskoScriptNoDeps instead" (cfg.devices._scripts { inherit pkgs; }).diskoScriptNoDeps;
|
||||||
|
|
||||||
diskoImages = diskoLib.makeDiskImages {
|
diskoImages = diskoLib.makeDiskImages {
|
||||||
nixosConfig = args;
|
nixosConfig = args;
|
||||||
|
|||||||
Reference in new issue
Block a user