Commit graph

15 commits

Author SHA1 Message Date
matthewcroughan
2f6e57d39f hercules-ci: mark x86_64-linux as a CI system 2022-05-24 03:23:19 +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
matthewcroughan
fcae9a11d0 Provide pkgs in forAllSystems
This is stolen from DavHau's dream2nix flake which reworks forAllSystems to provide two arguments, the pkgs and the system.
2022-03-31 17:40:00 +01:00
matthewcroughan
0d210c1d17 Fix dry-runs
Co-authored-by: Mason Mackaman <masondeanm@aol.com>
2022-03-24 18:46:04 +00:00
matthewcroughan
abc1895492 Remove examples from flake.nix inputs
Subflakes are not really a stable part of the flakes api, so they shouldn't be included in the flake.nix.
2022-03-23 23:18:23 +00:00
matthewcroughan
83eb225f9a Use nix copy instead of rsync 2022-02-28 01:15:36 +00:00
Chloe Kever
2a107a1b7b Add dry runs.
Co-authored-by: Mason Mackaman <masondeanm@aol.com>
2022-02-16 14:56:33 -08:00
Chloe Kever
48f1c6d1df root as the default user. 2022-02-15 18:39:10 -08:00
Chloe Kever
d9e1a0153f Define the script within nix, not bash. 2022-02-15 18:37:50 -08:00
Chloe Kever
6766412769 Remove trailing whitespace. 2022-02-15 18:19:48 -08:00
matthewcroughan
07a62f362b Use nixos-unstable
This is required to make nixos-rebuild work with flakes.
2022-02-07 00:59:29 +00:00
matthewcroughan
b7d47ddd37 Use nixos-rebuild switch instead of switch-to-configuration
This fixes https://github.com/MatthewCroughan/nixinate/issues/5
2022-02-07 00:58:06 +00:00
matthewcroughan
8f960401c4 flake: add local building
This adds the ability to build a system closure locally and push it to
the remote using `nix copy`
2022-01-26 22:58:48 +00:00
matthewcroughan
6003461f0e add examples 2022-01-26 20:17:20 +00:00
matthewcroughan
d4de691afb init 2022-01-03 10:50:50 +00:00