feat: add asusd

This commit is contained in:
jacekpoz 2023-09-14 16:22:29 +02:00
parent 5ac326442d
commit ce5f8da3f7
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 20 additions and 0 deletions

19
hosts/niks/asusd.nix Normal file
View file

@ -0,0 +1,19 @@
{
pkgs,
...
}: {
services.asusd = {
enable = true;
enableUserService = true;
asusdConfig = ''
(
bat_charge_limit: 90,
panel_od: true,
mini_led_mode: true,
disable_nvidia_powerd_on_battery: true,
ac_command: "${pkgs.asusctl}/bin/asusctl profile -P Performance",
bat_command: "${pkgs.asusctl}/bin/asusctl profile -P Quiet",
)
'';
};
}

View file

@ -1,5 +1,6 @@
_: {
imports = [
./asusd.nix
./configuration.nix
./greetd.nix
./hardware-configuration.nix