Hue+: Difference between revisions

From NixOS Wiki
(Initial Commit: added example configuration)
 
(Added a link to hue-plus)
Line 1: Line 1:
As of writing, there is no native NixOS configuration for it. However, with a simple service, this can be done easily!
As of writing, there is no native NixOS configuration for it. However, with [https://github.com/kusti8/hue-plus hue-plus] and a simple systemd service, this can be done easily!


= Example config =
= Example config =

Revision as of 19:40, 17 June 2024

As of writing, there is no native NixOS configuration for it. However, with hue-plus and a simple systemd service, this can be done easily!

Example config

# /etc/nixos/configuration.nix
{ config, pkgs, ... }:

{
  environment.systemPackages = with pkgs; [
    # ...
    hue-plus
    # ...
  ];
  
  systemd.services.nzxthue = {
    # You can obviously the candlelight mode & value! I just think this looks nice <3
    script= "${pkgs.hue-plus}/bin/hue candlelight ff3700";
    wantedBy = [ "multi-user.target" ];
  };
}