mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 07:01:53 -05:00
pacifidlog: add hdd adjustor
This commit is contained in:
parent
06bd802029
commit
f418d076bf
36
hosts/pacifidlog/adjustor.nix
Normal file
36
hosts/pacifidlog/adjustor.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
|
||||
{ fetchFromGitHub
|
||||
, lib
|
||||
, python3
|
||||
}:
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "adjustor";
|
||||
version = "3.4.5";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hhd-dev";
|
||||
repo = "adjustor";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-tde9FfP9MVOw1/0c4y8fQxVNmvvqjPG97S4bphOdqws=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
setuptools
|
||||
rich
|
||||
pyroute2
|
||||
fuse
|
||||
pygobject3
|
||||
dbus-python
|
||||
];
|
||||
|
||||
# This package doesn't have upstream tests.
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/hhd-dev/adjustor/";
|
||||
description = "Allows for TDP control of AMD Handhelds under handheld-daemon support";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
# Lenovo Legion Go
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
self,
|
||||
...
|
||||
|
@ -87,9 +88,19 @@
|
|||
})
|
||||
];
|
||||
|
||||
services.handheld-daemon = {
|
||||
services.handheld-daemon = let
|
||||
adjustor = pkgs.callPackage ./adjustor.nix {};
|
||||
in {
|
||||
enable = true;
|
||||
user = "aly";
|
||||
package = with pkgs;
|
||||
handheld-daemon.overrideAttrs (oldAttrs: {
|
||||
propagatedBuildInputs =
|
||||
oldAttrs.propagatedBuildInputs
|
||||
++ [
|
||||
adjustor
|
||||
];
|
||||
});
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
|
Loading…
Reference in a new issue