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;
}

View file

@ -3,7 +3,7 @@
{ desktop ? false }:
let
configuration = import ./configuration.nix { inherit inputs pkgs system; };
configuration = import ./configuration.nix { inherit desktop inputs pkgs system; };
hardware-configuration = import ./hardware-configuration.nix;
in
inputs.nixpkgs.lib.nixosSystem {

View file

@ -8,6 +8,16 @@
./modules/i3.nix
];
services.dunst = {
enable = true;
settings = {
global = {
follow = "keyboard";
};
};
};
xdg.configFile.wallpaper = {
source = ../../../config/wallpaper;
recursive = true;