feat(home): enhance user environment and dynamic theming

- 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
This commit is contained in:
Bernardo Magri
2026-04-03 21:07:12 +01:00
parent 14d7a89a84
commit 90e1a21701
6 changed files with 29 additions and 14 deletions

View File

@@ -5,10 +5,11 @@ let
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
temperature = if hyprsunsetState.enabled then hyprsunsetState.temperature else 6500;
extraArgs = [ "--temperature" temp ];
};
}