Files
amazing-dotfiles/modules/hypr/hyprsunset.nix
2026-03-24 10:40:31 +01:00

34 lines
528 B
Nix

{
userConfig,
pkgs,
...
}:
{
services.hyprsunset = {
enable = true;
package =
if userConfig.isNixOS then
pkgs.hyprsunset
else
(pkgs.writeShellScriptBin "hyprsunset" "exec /usr/bin/hyprsunset \"$@\"");
settings = {
max-gamma = 150;
profile = [
{
time = "7:00";
identity = true;
}
{
time = "21:30";
identity = false;
temperature = 4500;
gamma = 0.8;
}
];
};
};
}