nixos-module failing to build on darwin #103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#101 uses NixOS-specific settings which prevents it from being built on macOS:
see Matrix discussion here.
That's definitely a bug! When someone fixes this, we need to add an evaluation test to the checks that verifies it evaluates on nix-darwin.
@dibenzepin it should be fixed with #104
hm, nope still happens on
862e78b074:@tom-hubrecht is there a reason #104 doesn't use
stdenv.isDarwinand instead checks for the existence ofsystemdin the global config? (there probably is but i can't tell lol)I am pretty sure the module system does not allow for this.
The module system's typechecking resolves what options are defined in all places, with a
_type = "if";simply being a "conditional definition", but conditional definitions still can't reference options that don't exist. And we can't simply uselib.optionalAttrsbecause that causes infinite recursion.I'm pretty sure this is why Flakes have different outputs for
nixosModulesanddarwinModulesin the first place.