diff options
author | Martin Fischer <martin@push-f.com> | 2025-01-25 12:25:09 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-01-25 12:25:20 +0100 |
commit | 2397bd866e3917d0f26b46c118b407f46d1eb097 (patch) | |
tree | 6397c176c7856e0a899cbe193cc24e12b035c9d6 | |
parent | 0fcdd5671808b950859a9ee67d7086c9fb1d0234 (diff) |
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.
-rw-r--r-- | nixos/profiles/workstation/graphical.nix | 4 | ||||
-rw-r--r-- | user/sway/config | 3 |
2 files changed, 7 insertions, 0 deletions
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. |