Commit graph

8 commits

Author SHA1 Message Date
1efac43f15
Flatten apps (nixinate-name instead nixinate.name) (#50)
- Solves #12

Reviewed-on: #50
Co-authored-by: Tristan Druyen <tristan@vault81.de>
Co-committed-by: Tristan Druyen <tristan@vault81.de>
2023-12-11 21:10:17 +01:00
54df2c1238
Run nixpkgs-fmt 2023-12-11 20:37:06 +01:00
matthewcroughan
8dca4f6f58 Make flock usage hermetic 2022-10-28 01:43:24 +01:00
matthewcroughan
4a356409ca Add support for hermetic remote builds
A hermetic remote rebuild is when Nixinate sends a specific Nix binary
to the remote first, then uses it when activating a system closure,
rather than using the Nix that is already on the remote. This is
defaulted to false for the time being, as the bandwidth usage can be
high. This allows users to avoid the need to bootstrap the remote first
by enabling flakes on the remote Nix binary.
2022-05-29 19:02:50 +01:00
matthewcroughan
77cdda9589 tests/vmTest: remove empty argument set in baseConfig
Upstream Nixpkgs changed the behavior of the makeTest function so now this is no longer required
2022-05-24 05:06:57 +01:00
matthewcroughan
3e9dddd88b tests/vmTest: fix and de-duplicate code
Ironically, I did not properly test that I had made the local and remote
tests distinct. So the exampleFlake was hardcoded to 'local' only.  This
meant that building local and remote tests would return the same
results. This commit fixes that. Additionally, I've made
tests/vmTests/common.nix to deduplicate some of the code between nodes.
2022-05-24 03:06:29 +01:00
matthewcroughan
719e06be2b make vmTestLocal and vmTestRemote
This creates and uses a function named mkNixinateTest which takes a
buildOn argument. This expects to be either "local" or "remote". This
means we can make a test for both use cases of Nixinate. One where we
build on the remote machine, and one where we build locally and push to
the remote machine. These tests are then added to the top level of the
tests folder and are imported by the flake.nix
2022-04-21 02:11:21 +01:00
matthewcroughan
971bfe5d1f Add vmTest for Nixinate
This initializes ./test/default.nix which is referred to by the
flake.nix under the `checks` attribute. This default.nix should point to
all future tests, where they can be looked up and ran like:

nix build .#checks.x86_64-linux.vmTest

The test included is a simple NixOS VM Test. It uses Nixinate to deploy
a machine with `services.nginx.enable = true` set, and tests whether
nginx.service is started and reachable after deployment.
2022-04-19 05:43:22 +01:00