diff --git a/modules/components/system-services.nix b/modules/components/system-services.nix new file mode 100644 index 0000000..e755a45 --- /dev/null +++ b/modules/components/system-services.nix @@ -0,0 +1,14 @@ +# System services required for dots-hyprland +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.programs.dots-hyprland; +in +{ + config = mkIf cfg.enable { + # UPower for battery monitoring in quickshell bar + services.upower.enable = true; + }; +} diff --git a/modules/home-manager.nix b/modules/home-manager.nix index ec8d029..1e1fde5 100644 --- a/modules/home-manager.nix +++ b/modules/home-manager.nix @@ -18,6 +18,7 @@ in ./components/hyprland-config.nix ./components/terminal-config.nix ./components/touchegg.nix + ./components/system-services.nix ./components/config-override.nix ];