Installation
System wide:
{
environment.systemPackages = with nix-casks.packages.${system}; [
battery # Battery
];
} Home Manager:
{
home.packages = with nix-casks.packages.${system}; [
battery # Battery
];
} Package Definition
{
"pname": "battery",
"version": "1.3.2",
"src": {
"url": "https://github.com/actuallymentor/battery/releases/download/v1.3.2/battery-1.3.2-mac-arm64.zip",
"sha256": "78bb43edd4170825137f48878600d928a7fef3b053339edb8c64fb80e7d78d83"
},
"installPhase": [
"mkdir -p \"$out/Applications/battery.app\" && cp -r \"battery.app\" \"$out/Applications\""
],
"meta": {
"description": "App for managing battery charging. (Also installs a CLI on first use.)",
"homepage": "https://github.com/actuallymentor/battery/"
}
}