diff options
author | Vika <vika@fireburn.ru> | 2024-05-19 01:27:56 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-05-19 01:27:56 +0300 |
commit | 113a6f9fe6603be7488c1c9a5bb4b1b7c5bb2f71 (patch) | |
tree | 2d123cbe52f96cc1e470b754bb92d22776cb12df /nixos-tests/smoke-test.nix | |
parent | 9821be44cfdcbdc9c5a37b8eabddccabe0cbeabf (diff) |
Move NixOS test initialization to the package
This allows to initialize tests easier and not have them depend on the flake itself. This might be useful if I ever have to build this package without a flake.
Diffstat (limited to 'nixos-tests/smoke-test.nix')
-rw-r--r-- | nixos-tests/smoke-test.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos-tests/smoke-test.nix b/nixos-tests/smoke-test.nix index b043a31..737dbab 100644 --- a/nixos-tests/smoke-test.nix +++ b/nixos-tests/smoke-test.nix @@ -1,11 +1,12 @@ -kittybox: { lib, ... }: { name = "nixos-kittybox"; nodes = { kittybox = { config, pkgs, lib, ... }: { - imports = [ kittybox.nixosModules.default ]; + imports = [ ../configuration.nix ]; + # TODO: figure out if we can get rid of Postgres here + # even at the cost of Webmention functionality services.postgresql = { enable = true; ensureDatabases = ["kittybox"]; |