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
65323269da
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/76e3df7c0687d5b9ff31431fd4ee4d4cd07a4b2f' (2022-02-03)
→ 'github:nixos/nixpkgs/dfd82985c273aac6eced03625f454b334daae2e8' (2022-05-20)
2022-05-24 05:04:49 +01:00
MatthewCroughan
88b928100b
Merge pull request #18 from MatthewCroughan/mc/fix-tests
...
tests/vmTest: fix and deduplicate code
2022-05-24 04:53:42 +01:00
matthewcroughan
2f6e57d39f
hercules-ci: mark x86_64-linux as a CI system
2022-05-24 03:23:19 +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
783dcfbb9e
Merge pull request #16 from MatthewCroughan/mc/tests
...
Add vmTest for Nixinate
2022-04-25 00:52:18 +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
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
f042b0170e
Add .gitignore
2022-03-31 17:36:45 +01:00
MatthewCroughan
f9025fd06b
Merge pull request #15 from MatthewCroughan/mc/fix-dry-run
...
Fix dry-runs
2022-03-24 18:48:39 +00:00
matthewcroughan
0d210c1d17
Fix dry-runs
...
Co-authored-by: Mason Mackaman <masondeanm@aol.com>
2022-03-24 18:46:04 +00:00
MatthewCroughan
e961e078cd
Merge pull request #14 from MatthewCroughan/mc/cleanup
...
Cleanup Examples
2022-03-23 23:55:24 +00:00
matthewcroughan
56878e1a42
Fix examples
2022-03-23 23:53:43 +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
886c6a2b3b
fix README
2022-03-06 17:18:07 +00:00
MatthewCroughan
f13b5a7dcc
Merge pull request #11 from MatthewCroughan/mc/use-nix-copy
...
Use nix copy instead of rsync
2022-03-03 19:41:14 +00:00
matthewcroughan
83eb225f9a
Use nix copy instead of rsync
2022-02-28 01:15:36 +00:00
MatthewCroughan
6244aa6deb
Merge pull request #7 from pinktrink/master
...
Add dry runs.
2022-02-17 02:38:08 +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
9299d595e8
Merge pull request #6 from MatthewCroughan/mc/use-nixos-rebuild
...
Use nixos-rebuild instead of switch-to-configuration script
2022-02-07 01:19:42 +00: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
32953fe5f0
Merge pull request #4 from nixinator/nixinator-add-buildOn
...
added buildOn to example
2022-01-31 20:11:49 +00:00
nixinator
2c37b83ad0
added buildOn to example
2022-01-31 19:56:47 +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