disko2: Add basic config evaluation via nushell

You can call it like so:

    ./disko.nu mount example/simple-efi.nix
    ./disko.nu mount -f .#testmachine

and it will output a JSON representation of the evaluated disko
configuration.

eval-config.nix is based on cli.nix

The test script is a first attempt.
This commit is contained in:
Felix Uhl committed 2024-10-23 18:56:44 +02:00
1 parent d7d57edb72
commit 3d67130ff3
4 files changed
+421

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ let
};
in
{
inherit eval;
lib = lib.warn "the .lib.lib output is deprecated" diskoLib;
# legacy alias