add app script to flake for VM

main
jolheiser 2025-05-14 11:49:11 -05:00
parent 9f3ca2ae1e
commit 68992f0807
No known key found for this signature in database
1 changed files with 16 additions and 0 deletions

View File

@ -68,5 +68,21 @@
}
];
};
apps = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
vm = {
type = "app";
program = "${pkgs.writeShellScript "vm" ''
nixos-rebuild build-vm --flake .#ugitVM
./result/bin/run-nixos-vm
rm nixos.qcow2
''}";
};
}
);
};
}