diff --git a/CHANGELOG.md b/CHANGELOG.md index e267612..79b0aad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ Instead of grouping changes by tag, they are grouped by the date they are releas - Updated background colour in the tmux status bar. - Switch from NixOS unstable to 24.05. +### Fixed + +- Fix battery and charging notifications. + ## 10th June 2024 ### Updated diff --git a/bin/notify-battery.sh b/bin/notify-battery similarity index 98% rename from bin/notify-battery.sh rename to bin/notify-battery index e6297f4..e9e77b4 100755 --- a/bin/notify-battery.sh +++ b/bin/notify-battery @@ -1,5 +1,6 @@ #!/usr/bin/env bash +set -o errexit set -o nounset set -o pipefail diff --git a/lib/nixos/configuration.nix b/lib/nixos/configuration.nix index 8c982db..8b60668 100644 --- a/lib/nixos/configuration.nix +++ b/lib/nixos/configuration.nix @@ -329,7 +329,7 @@ in services.cron = { enable = true; - systemCronJobs = [ "* * * * * opdavies /home/opdavies/.config/bin/notify-battery.sh" ]; + systemCronJobs = [ "* * * * * opdavies /home/${username}/.local/bin/notify-battery" ]; }; services.auto-cpufreq.enable = true;