MatthewCroughan / NixThePlanet

Run macOS, Windows and more via a single Nix command, or simple nixosModules
MIT License
553 stars 14 forks source link

MacOS Ventura service is not working with default package #26

Closed luisnquin closed 5 months ago

luisnquin commented 7 months ago

I've been trying to install macOS ventura in my NixOS computer but the rebuild process failed due to apparently something's wrong with the macOS module, you can reproduce this error with the snippet of the image below

image

Here's the underlying error

image

A workaround for me is to create the package directly from the flake itself.

image

image

Until then, everything else works as expected. I tried the macOS option and I want to say what you've been doing is great and it seems that it will save me a lot of money by saving me from buying a macOS just to do some app builds for iOS. :)

MatthewCroughan commented 7 months ago

The nixosModule is tested in CI, there has to be something else going on in some code that you are not displaying in the screenshots, for example inside of ./system/configuration.nix.

I notice you have pkgs defined since you are inheriting it. Can you show me how you defined it?

luisnquin commented 7 months ago

Here you can find some definitions that I have on my computer

Also, I don't think it's relevant but you can find the mkSetup definition here

The macOS module is disabled because I already used it and I don't wanted it to consume space until the next time

luisnquin commented 7 months ago

You can find this other configuration that I have used and got the same result, it is from a computer at my work that has NixOS installed and is not complex like my personal flake. In fact, the first two screenshots are from that computer.

MatthewCroughan commented 7 months ago

@luisnquin I see you're applying a lot of overlays, and I think you're doing expressing something wrong and clobbering the overlay from this flake somehow. It is not easy to debug, but I hope this gives you something to go on.

MatthewCroughan commented 7 months ago

Currently busy travelling, but I'll get back to this if you don't figure it out, when I get home again.

luisnquin commented 7 months ago

Don't worry, I'm currently using the workaround I mentioned before. The issue might be when someone tries to start the service with the default package.

MatthewCroughan commented 7 months ago

@luisnquin it definitely isn't that, because if you craft a barebones Nix flake without any of your code in it, this doesn't happen. The issue is in a nix expression you're including into your own config which includes other overlays. I'm fairly confident that it is your Nix code causing the problem at this time, having tested it myself. But debugging your config will be a bit time consuming for me right now, but I'm up for it when I get home.

MatthewCroughan commented 5 months ago

Closing, as the issue cannot be reproduced and is likely an issue with the user's Nix expression, and not with the project.