mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 20:20:43 +02:00
34 lines
514 B
Nix
34 lines
514 B
Nix
{
|
|
isNixOS,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
services.hyprsunset = {
|
|
enable = true;
|
|
package =
|
|
if isNixOS then
|
|
pkgs.hyprsunset
|
|
else
|
|
(pkgs.writeShellScriptBin "hyprsunset" "exec /usr/bin/hyprsunset \"$@\"");
|
|
|
|
settings = {
|
|
max-gamma = 150;
|
|
|
|
profile = [
|
|
{
|
|
time = "7:00";
|
|
identity = true;
|
|
}
|
|
{
|
|
time = "21:00";
|
|
identity = false;
|
|
temperature = 4500;
|
|
gamma = 0.8;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|