This commit is contained in:
2025-07-03 19:08:17 +02:00
parent 096ea286fe
commit 0e8b93caa8
7 changed files with 42 additions and 10 deletions

View File

@@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.nixos.programs.lact;
in {
options = {
nixos.programs.lact.enable = mkEnableOption "Enables lact for GPU monitoring and tweaking";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
lact
];
systemd.services.lact = {
enable = cfg.enable;
description = "GPU Control Daemon";
after = ["multi-user.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
ExecStart = "${pkgs.lact}/bin/lact daemon";
};
};
};
}