summary refs log tree commit diff
path: root/pkgs/os-specific/linux/power-profiles-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/power-profiles-daemon')
-rw-r--r--pkgs/os-specific/linux/power-profiles-daemon/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/power-profiles-daemon/default.nix b/pkgs/os-specific/linux/power-profiles-daemon/default.nix
index f9ca936e6ed..e3599db09d5 100644
--- a/pkgs/os-specific/linux/power-profiles-daemon/default.nix
+++ b/pkgs/os-specific/linux/power-profiles-daemon/default.nix
@@ -18,6 +18,7 @@
 , systemd
 , python3
 , wrapGAppsNoGuiHook
+, nixosTests
 }:
 
 stdenv.mkDerivation rec {
@@ -97,6 +98,12 @@ stdenv.mkDerivation rec {
     wrapPythonProgramsIn "$out/bin" "$pythonPath"
   '';
 
+  passthru = {
+    tests = {
+      nixos = nixosTests.power-profiles-daemon;
+    };
+  };
+
   meta = with lib; {
     homepage = "https://gitlab.freedesktop.org/hadess/power-profiles-daemon";
     description = "Makes user-selected power profiles handling available over D-Bus";