From 2397bd866e3917d0f26b46c118b407f46d1eb097 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 25 Jan 2025 12:25:09 +0100 Subject: feat(workstation): add poweralertd My laptop died on me a couple times while I was working because it didn't complain about the running out battery. --- nixos/profiles/workstation/graphical.nix | 4 ++++ user/sway/config | 3 +++ 2 files changed, 7 insertions(+) diff --git a/nixos/profiles/workstation/graphical.nix b/nixos/profiles/workstation/graphical.nix index 1e7944c..0aba4a4 100644 --- a/nixos/profiles/workstation/graphical.nix +++ b/nixos/profiles/workstation/graphical.nix @@ -32,8 +32,12 @@ # set and forget i3status-rust + mako + poweralertd ]; + services.upower.enable = true; + # This generates /etc/xdg/mimeapps.list. The XDG spec and xdg-open don't support wildcards in MIME types. # TODO: use an xdg-open alternative that supports wildcards in MIME types and doesn't use mimeapps.list xdg.mime.defaultApplications = diff --git a/user/sway/config b/user/sway/config index 2e4a38b..cd35364 100644 --- a/user/sway/config +++ b/user/sway/config @@ -1,5 +1,8 @@ # Read `man 5 sway` for a complete reference. +exec mako # notification daemon +exec poweralertd + ### Variables # # Logo key. Use Mod1 for Alt. -- cgit v1.2.3