fix minecraft test

This commit is contained in:
Simon Gardling 2025-08-21 05:12:31 -04:00
parent 3557a2e6c8
commit 006652da36
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
2 changed files with 15 additions and 12 deletions

26
lib.nix
View File

@ -83,19 +83,21 @@ inputs.nixpkgs.lib.extend (
serviceName: zpool: serviceName: zpool:
{ config, ... }: { config, ... }:
{ {
systemd.services.${serviceName} = { config = lib.mkIf (zpool != "") {
wants = [ "zfs-import-${zpool}.service" ]; systemd.services.${serviceName} = {
after = [ "zfs-import-${zpool}.service" ]; wants = [ "zfs-import-${zpool}.service" ];
requires = [ "zfs-import-${zpool}.service" ]; after = [ "zfs-import-${zpool}.service" ];
}; requires = [ "zfs-import-${zpool}.service" ];
};
# assert that the pool is even enabled # assert that the pool is even enabled
config.assertions = [ assertions = [
{ {
assertion = builtins.elem zpool config.boot.zfs.extraPools; assertion = builtins.elem zpool config.boot.zfs.extraPools;
message = "${zpool} is not enabled in `boot.zfs.extraPools`"; message = "${zpool} is not enabled in `boot.zfs.extraPools`";
} }
]; ];
};
}; };
} }
) )

View File

@ -32,6 +32,7 @@ let
https = { https = {
domain = "test.local"; domain = "test.local";
}; };
zpool_ssds = "";
}; };
username = "testuser"; username = "testuser";
}) })