mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 22:13:28 +01:00
disko2: Create package
This requires a lot of restructuring. The .nix files have to be bundled together with the python files, so they need to follow python's module system structure. I ran `nix-fast-build --no-link -j 2 --eval-workers 3 --flake .#checks` and it succeeded, so I'm reasonably confident I changed everything as required.
This commit is contained in:
1 parent
5da578139e
commit
389235b63f
88 files changed
+374
-282
No files matched your search
+3
-3
@@ -4,13 +4,13 @@ let
|
||||
|
||||
vmVariantWithDisko = extendModules {
|
||||
modules = [
|
||||
./lib/interactive-vm.nix
|
||||
./src/disko_lib/interactive-vm.nix
|
||||
config.disko.tests.extraConfig
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ ./lib/make-disk-image.nix ];
|
||||
imports = [ ./src/disko_lib/make-disk-image.nix ];
|
||||
|
||||
options.disko = {
|
||||
imageBuilder = {
|
||||
@@ -205,7 +205,7 @@ in
|
||||
}
|
||||
];
|
||||
|
||||
_module.args.diskoLib = import ./lib {
|
||||
_module.args.diskoLib = import ./src/disko_lib {
|
||||
inherit lib;
|
||||
rootMountPoint = config.disko.rootMountPoint;
|
||||
makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix");
|
||||
|
||||
Reference in new issue
Block a user