feat: added a api route to control monitors from home assistant
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-16 21:59:10 +05:30
parent 5f951eb9c7
commit 4a51b49b9e
4 changed files with 207 additions and 91 deletions

View File

@@ -9,5 +9,6 @@
./ironbar
./gui.nix
./eww.nix
./hyprmon.nix
];
}

27
home/services/hyprmon.nix Normal file
View File

@@ -0,0 +1,27 @@
{inputs, ...}: {
imports = [
# Import the hyprmonitors module
inputs.hyprmonitors.homeManagerModules.hyprmonitors
];
# Configure hyprmonitors service
services.hyprmonitors = {
enable = true;
# Optional: customize host and port (defaults shown)
host = "0.0.0.0";
port = 3113;
# Optional: set log level (default: "info")
logLevel = "info";
# Optional: add environment variables
# environmentVariables = {
# # Example: if you need to set specific Hyprland instance
# # HYPRLAND_INSTANCE_SIGNATURE = "your-signature-here";
# };
# Optional: override the package (if you want to use a custom build)
# package = pkgs.hyprmonitors; # Uses default from module
};
}