nixpkgs/nixos/modules/profiles
Rebecca Turner 2263f723c1
darwin.linux-builder: split create-builder script
The current workflow for starting the `linux-builder` on macOS is to run
`nix run nixpkgs#darwin.linux-builder`, which adds keys to the store and
then starts the builder.

Adding the keys requires user input (due to `sudo`) but the actual
builder should just stay running in the background somewhere.

I'd like to automate this process, but it's currently rather complex:
the first part of the script needs user input for `sudo`, and then
there's no signal when the process has finished starting up. The user
will need to see stdout/stderr during the first part, which makes it
challenging to capture it for the second part to determine when startup
has finished.

To fix this, I've split the `create-builder` script into an `add-keys`
script (interactive) and a `run-builder` script (background). These new
scripts are exposed in the `passthru` attributes for external users. The
`create-builder` script is now a simple call of `add-keys` and then
`run-builder`.

See: https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder
2025-05-12 12:18:33 -07:00
..
keys
all-hardware.nix nixos: add option hardware.enableAllHardware 2024-12-12 16:45:25 +07:00
base.nix nixos/iso-image: Include latest kernel specialisation. 2025-03-16 01:38:37 -04:00
clone-config.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
docker-container.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
graphical.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
hardened.nix Revert "nixos/profiles/hardened: don't enable by default" 2025-02-19 19:53:15 +03:00
headless.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
image-based-appliance.nix nixos/profiles: add image-based-appliance profile 2023-10-28 13:26:39 +02:00
installation-device.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
macos-builder.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
minimal.nix Remove with lib from minimal profile; group config 2024-12-14 15:13:26 -05:00
nix-builder-vm.nix darwin.linux-builder: split create-builder script 2025-05-12 12:18:33 -07:00
perlless.nix nixos/perlless: only disable installer tools that introduce perl 2025-03-09 23:24:20 +00:00
qemu-guest.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00