diff --git a/os-mods/ryzenapu/default.nix b/os-mods/ryzenapu/default.nix index f7e2878..6c91757 100644 --- a/os-mods/ryzenapu/default.nix +++ b/os-mods/ryzenapu/default.nix @@ -93,7 +93,11 @@ services = { power-profiles-daemon.enable = true; + # AC0 nixos-pulse + # ACAD nixos-fw16 udev.extraRules = '' + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="ACAD", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${pkgs.systemd}/bin/systemctl --no-block start ac.target" + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="ACAD", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${pkgs.systemd}/bin/systemctl --no-block start battery.target" SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="AC0", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${pkgs.systemd}/bin/systemctl --no-block start ac.target" SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="AC0", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${pkgs.systemd}/bin/systemctl --no-block start battery.target" '';