1
0
Fork 0

fix tests

This commit is contained in:
ibizaman 2024-04-02 22:15:58 -07:00
parent 1832c743da
commit d708bb41a6
2 changed files with 4 additions and 2 deletions
modules/blocks
test/modules

View file

@ -138,7 +138,7 @@ in
(lib.mkIf cfg.enableTCPIP tcpConfig)
(debugConfig cfg.debug)
{
environment.systemPackages = [
environment.systemPackages = lib.mkIf config.services.postgresql.enable [
(upgrade-script 13 14)
(upgrade-script 14 15)
(upgrade-script 15 16)

View file

@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, pkgs, ... }:
let
anyOpt = default: lib.mkOption {
type = lib.types.anything;
@ -8,11 +8,13 @@ let
testConfig = m:
let
cfg = (lib.evalModules {
specialArgs = { inherit pkgs; };
modules = [
{
options = {
services = anyOpt {};
systemd = anyOpt {};
environment = anyOpt {};
};
}
../../modules/blocks/postgresql.nix