deploy-rs/examples/darwin
2023-05-12 10:59:19 +08:00
..
flake.nix [#210] Add activation script for darwin system and provide a usage example 2023-05-11 16:02:01 +08:00
README.md [#210] Add activation script for darwin system and provide a usage example 2023-05-11 16:02:01 +08:00

Example nix-darwin system deployment

Prerequisites

  1. Install nix and nix-darwin (the latter creates /run sets up /etc/nix/nix.conf symlink and so on) on the target machine.
  2. Enable remote login on the mac to allow ssh access.
  3. deploy-rs doesn't support password provisioning for sudo, so the sshUser should have passwordless sudo access.

Deploying

Run nix run github:serokell/deploy-rs -- --ssh-user <user>.