Add and configure dunst for battery notifications

This commit is contained in:
Oliver Davies 2023-12-27 15:18:32 +00:00
parent 5113583f8e
commit 34a8cce318
4 changed files with 56 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ inputs, pkgs, system }:
{ inputs, desktop ? false, pkgs, system }:
let
pkgsUnstable = inputs.nixpkgs-unstable.legacyPackages."${system}";
@ -133,6 +133,10 @@ in
xfce.thunar
xfce.thunar-volman
xfce.tumbler
] ++ pkgs.lib.optionals desktop [
acpi
dunst
libnotify
# Games.
zeroad
@ -258,10 +262,13 @@ in
};
};
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", TAG+="uaccess", TAG+="udev-acl", GROUP="realet"
'';
services.cron = {
enable = true;
systemCronJobs = [
"* * * * * opdavies /home/opdavies/.config/bin/notify-battery.sh"
];
};
services.auto-cpufreq.enable = true;
}