mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 13:21:45 -05:00
fix: Added a check for vagrant.
This commit is contained in:
14
flake.nix
14
flake.nix
@@ -1,10 +1,22 @@
|
||||
{
|
||||
description = "A very basic flake";
|
||||
description = "Utilities for running Laravel, particularly with Vagrant";
|
||||
|
||||
outputs = { nixpkgs, self }: {
|
||||
nixosModules = {
|
||||
laravel = import ./nixos/modules/web-apps/laravel.nix;
|
||||
vagrant = { ... }: { imports = [ ./nixos/modules/virtualisation/vagrant.nix ]; };
|
||||
};
|
||||
|
||||
checks."x86_64-linux".vagrant = let pkgs = nixpkgs.legacyPackages."x86_64-linux"; in
|
||||
pkgs.nixosTest {
|
||||
name = "vagrant-box-test";
|
||||
nodes.machine = { pkgs, ... }: { imports = with self.nixosModules; [ vagrant ]; };
|
||||
testScript = ''
|
||||
# run hello on machine and check for output
|
||||
machine.succeed('hello | grep "Hello, world!"')
|
||||
machine.succeed('goodbye | grep "Hello, world!"')
|
||||
# test is a simple python script
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user