nixosTest.lact: init

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
John Titor 2025-05-29 19:55:13 +05:30 committed by Masum Reza
parent 81fc14bc5e
commit 202780360b
3 changed files with 23 additions and 0 deletions

View file

@ -714,6 +714,7 @@ in
kthxbye = runTest ./kthxbye.nix;
kubernetes = handleTestOn [ "x86_64-linux" ] ./kubernetes { };
kubo = import ./kubo { inherit recurseIntoAttrs runTest; };
lact = runTest ./lact.nix;
ladybird = runTest ./ladybird.nix;
languagetool = runTest ./languagetool.nix;
lanraragi = runTest ./lanraragi.nix;

18
nixos/tests/lact.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs, ... }:
{
name = "lact";
meta = {
inherit (pkgs.lact.meta) maintainers;
};
nodes.machine =
{ config, pkgs, ... }:
{
services.lact.enable = true;
};
testScript = ''
machine.wait_for_unit("lactd.service")
machine.wait_for_file("/run/lactd.sock")
'';
}

View file

@ -14,6 +14,7 @@
coreutils,
systemdMinimal,
nix-update-script,
nixosTests,
hwdata,
fuse3,
autoAddDriverRunpath,
@ -117,6 +118,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
'';
passthru.updateScript = nix-update-script { };
passthru.tests = {
inherit (nixosTests) lact;
};
meta = {
description = "Linux GPU Configuration Tool for AMD and NVIDIA";