LnL7 / nix-darwin

nix modules for darwin
MIT License
3.19k stars 457 forks source link

linux-builder: make `package.nixosConfig` accurate #1058

Closed Enzime closed 2 months ago

Enzime commented 2 months ago

This allows users to access the correct values through nix.linux-builder.package.nixosConfig e.g.

{
    nix.linux-builder.config.services.tailscale.enable = true;
}

$ nix eval github:Enzime/dotfiles-nix#darwinConfigurations.chi.config.nix.linux-builder.package.nixosConfig.services.tailscale.enable
false
$ nix eval github:Enzime/dotfiles-nix#darwinConfigurations.chi.config.nix.linux-builder.package.nixosConfig.services.tailscale.enable --override-input nix-darwin github:Enzime/nix-darwin/linux-builder-apply
true