nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

nixos/lact: init

On AMD GPU, you should enable overdrive mode by using `hardware.amdgpu.overdrive.enable = true;` in your configuration.

Co-authored-by: PopeRigby <poperigby@mailbox.org>
Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>

John Titor 81fc14bc 3d79cbf3

+43
+3
nixos/doc/manual/release-notes/rl-2511.section.md
··· 14 14 15 15 - [FileBrowser](https://filebrowser.org/), a web application for managing and sharing files. Available as [services.filebrowser](#opt-services.filebrowser.enable). 16 16 17 + - [LACT](https://github.com/ilya-zlobintsev/LACT), a GPU monitoring and configuration tool, can now be enabled through [services.lact.enable](#opt-services.lact.enable). 18 + Note that for LACT to work properly on AMD GPU systems, you need to enable [hardware.amdgpu.overdrive.enable](#opt-hardware.amdgpu.overdrive.enable). 19 + 17 20 - [SuiteNumérique Docs](https://github.com/suitenumerique/docs), a collaborative note taking, wiki and documentation web platform and alternative to Notion or Outline. Available as [services.lasuite-docs](#opt-services.lasuite-docs.enable). 18 21 19 22 ## Backward Incompatibilities {#sec-release-25.11-incompatibilities}
+1
nixos/modules/module-list.nix
··· 646 646 ./services/hardware/kanata.nix 647 647 ./services/hardware/keyd.nix 648 648 ./services/hardware/kmonad.nix 649 + ./services/hardware/lact.nix 649 650 ./services/hardware/lcd.nix 650 651 ./services/hardware/libinput.nix 651 652 ./services/hardware/lirc.nix
+39
nixos/modules/services/hardware/lact.nix
··· 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: 7 + 8 + let 9 + cfg = config.services.lact; 10 + in 11 + { 12 + meta.maintainers = [ lib.maintainers.johnrtitor ]; 13 + 14 + options.services.lact = { 15 + enable = lib.mkEnableOption null // { 16 + description = '' 17 + Whether to enable LACT, a tool for monitoring, configuring and overclocking GPUs. 18 + 19 + ::: {.note} 20 + If you are on an AMD GPU, it is recommended to enable overdrive mode by using 21 + `hardware.amdgpu.overdrive.enable = true;` in your configuration. 22 + See [LACT wiki](https://github.com/ilya-zlobintsev/LACT/wiki/Overclocking-(AMD)) for more information. 23 + ::: 24 + ''; 25 + }; 26 + 27 + package = lib.mkPackageOption pkgs "lact" { }; 28 + }; 29 + 30 + config = lib.mkIf cfg.enable { 31 + environment.systemPackages = [ cfg.package ]; 32 + systemd.packages = [ cfg.package ]; 33 + 34 + systemd.services.lactd = { 35 + description = "LACT GPU Control Daemon"; 36 + wantedBy = [ "multi-user.target" ]; 37 + }; 38 + }; 39 + }