clean up and fix flake

This commit is contained in:
Jeeves 2024-06-24 14:11:39 -06:00
parent 19ab6d3c70
commit bb3c001b00
2 changed files with 5 additions and 19 deletions

View file

@ -22,16 +22,6 @@
inherit (oslib) osdb;
zig-env = zig2nix.outputs.zig-env.${system} { zig = zig2nix.outputs.packages.${system}.zig.master.bin; };
# hello-vm = oslib.mkVM {
# name = "hello";
# uuid = "c0c49ae7-6fe4-4c39-a8ae-c80c6b689344";
# arch = "x86_64";
# isos.beforeInstall = [
# { index = 1; file = "${osdb.windows."6.1.7601".professional.x86_64.installer}/out.iso"; }
# { index = 2; file = "${osdb.windows."6.1.7601".professional.x86_64.unattend}/out.iso"; }
# ];
# };
in {
mkFlake = config:
flake-utils.lib.eachDefaultSystem(system:
@ -39,7 +29,7 @@
vm = oslib.mkVM {
inherit (config) name uuid;
inherit (config.os) arch;
beforeInstall = [
isos.beforeInstall = [
{ index = 1; file = "${osdb.${config.os.name}.${config.os.version}.${config.os.edition}.${config.os.arch}.installer}/out.iso"; }
{ index = 2; file = "${osdb.${config.os.name}.${config.os.version}.${config.os.edition}.${config.os.arch}.unattend}/out.iso"; }
];
@ -53,10 +43,6 @@
});
apps = {
# hello-start-vm = flake-utils.lib.mkApp {
# drv = hello-vm.start-vm;
# exePath = "";
# };
default = zig-env.app-no-root [] "zig build run -- \"$@\"";
};