diff --git a/configs/nixos/hosts/neogaia/default.nix b/configs/nixos/hosts/neogaia/default.nix index aeabd67..d96111c 100644 --- a/configs/nixos/hosts/neogaia/default.nix +++ b/configs/nixos/hosts/neogaia/default.nix @@ -1,5 +1,6 @@ { inputs, + util, ... }: # neogaia — Dell XPS 13 9380 laptop. @@ -39,4 +40,23 @@ modules.desktop.apps.obsidian.enable = true; modules.desktop.apps.steam.enable = true; + registry.waybar.neogaia.battery = { + order = 70; + settings = { + format = "{icon} {capacity}%"; + format-charging = "${util.glyph "f0e7"} {capacity}%"; + format-icons = [ + (util.glyph "f244") + (util.glyph "f243") + (util.glyph "f242") + (util.glyph "f241") + (util.glyph "f240") + ]; + states = { + warning = 20; + critical = 10; + }; + }; + }; + } diff --git a/configs/nixos/modules/desktop/session/waybar.nix b/configs/nixos/modules/desktop/session/waybar.nix index 7eb8dd6..5711e2f 100644 --- a/configs/nixos/modules/desktop/session/waybar.nix +++ b/configs/nixos/modules/desktop/session/waybar.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - util, ... }: # Waybar: a top status bar reading system state at a glance. @@ -73,25 +72,6 @@ in }; }; }; - - battery = { - order = 70; - settings = { - format = "{icon} {capacity}%"; - format-charging = "${util.glyph "f0e7"} {capacity}%"; - format-icons = [ - (util.glyph "f244") - (util.glyph "f243") - (util.glyph "f242") - (util.glyph "f241") - (util.glyph "f240") - ]; - states = { - warning = 20; - critical = 10; - }; - }; - }; }; }; }