- Consolidate all configuration toggles (suspend, idle, waybar, etc.) into ~/.config/home-manager/state.json - Introduce nomarchy.toggles and nomarchy.hyprland options in Nix - Inject toggle states into all bin/ scripts via environment variables - Update toggle scripts to mutate JSON and trigger background rebuilds - Add a migration script to transition legacy flag files to the new format
12 lines
280 B
Nix
12 lines
280 B
Nix
{ config, ... }:
|
|
|
|
let
|
|
temp = toString (if config.nomarchy.toggles.nightlight then config.nomarchy.nightlightTemperature else 6500);
|
|
in
|
|
{
|
|
services.hyprsunset = {
|
|
enable = true; # Always enabled, we control via IPC and state
|
|
extraArgs = [ "--temperature" temp ];
|
|
};
|
|
}
|