diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 747ce6390695..a91b390baa91 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -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; diff --git a/nixos/tests/lact.nix b/nixos/tests/lact.nix new file mode 100644 index 000000000000..ebfda66ad11e --- /dev/null +++ b/nixos/tests/lact.nix @@ -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") + ''; +} diff --git a/pkgs/by-name/la/lact/package.nix b/pkgs/by-name/la/lact/package.nix index 8058349d6a80..77a26fa4073f 100644 --- a/pkgs/by-name/la/lact/package.nix +++ b/pkgs/by-name/la/lact/package.nix @@ -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";