From 26700c79114ab4eaea3b3511c57533fbf498cb3c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 28 Feb 2025 00:18:04 +0000 Subject: [PATCH] Add poweralertd and dunst https://git.sr.ht/~kennylevinsen/poweralertd --- .../home-manager/features/desktop/dwm.nix | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/nix/modules/home-manager/features/desktop/dwm.nix b/nix/modules/home-manager/features/desktop/dwm.nix index c74affd..6fa0b8f 100644 --- a/nix/modules/home-manager/features/desktop/dwm.nix +++ b/nix/modules/home-manager/features/desktop/dwm.nix @@ -11,16 +11,25 @@ with lib; options.features.desktop.dwm.enable = mkEnableOption "Enable dwm"; config = mkIf config.features.desktop.dwm.enable { - home.file.".xinitrc".text = '' - systemctl --user import-environment DISPLAY + home = { + file.".xinitrc".text = '' + systemctl --user import-environment DISPLAY - autorandr --change + autorandr --change - copyq & + copyq & - systemctl --user start dwm-status & + poweralertd -s & - exec dwm - ''; + systemctl --user start dwm-status & + + exec dwm + ''; + + packages = with pkgs; [ + dunst + poweralertd + ]; + }; }; }