Hue+

From NixOS Wiki
Revision as of 19:39, 17 June 2024 by Denperidge (talk | contribs) (Initial Commit: added example configuration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

As of writing, there is no native NixOS configuration for it. However, with a simple 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" ];
  };
}