- Implement dynamic palette generation from colors.toml themes - Update script wrapper to handle non-executable source files - Integrate Stylix for unified application theming - Add state-based logic for persistent dynamic configurations
16 lines
514 B
Nix
16 lines
514 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
stateFile = "${config.home.homeDirectory}/.config/home-manager/hyprsunset-state.json";
|
|
hyprsunsetState = if builtins.pathExists stateFile then
|
|
builtins.fromJSON (builtins.readFile stateFile)
|
|
else { enabled = false; temperature = 4000; };
|
|
temp = toString (if hyprsunsetState.enabled then hyprsunsetState.temperature else 6500);
|
|
in
|
|
{
|
|
services.hyprsunset = {
|
|
enable = true; # Always enabled, we control via IPC and state
|
|
extraArgs = [ "--temperature" temp ];
|
|
};
|
|
}
|