{ config, lib, pkgs, ... }:
{
services.wlsunset = {
enable = true;
gamma = 0.9;
latitude = 46.7;
longitude = -94.6;
sunrise = "06:30";
sunset = "18:00";
temperature = {
day = 5000;
night = 3000;
};
};
}
error:
safri@yuki:~/ > homeup
warning: Git tree '/home/safri/.nix' is dirty
> Building Home-Manager configuration
warning: Git tree '/home/safri/.nix' is dirty
error:
… while evaluating a branch condition
at /nix/store/rzpdp2vaaxaddl6gcg4wfyczvcg0yc7f-source/lib/lists.nix:142:18:
141| len = length list;
142| fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));
| ^
143| in
… while calling the 'length' builtin
at /nix/store/rzpdp2vaaxaddl6gcg4wfyczvcg0yc7f-source/lib/lists.nix:141:13:
140| let
141| len = length list;
| ^
142| fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error:
Failed assertions:
- Either `sunrise` and `sunset` together or `longitude` and `latitude` together must be set for wlsunset
┏━ 1 Errors:
┃ error:
┃ … while evaluating a branch condition
┃ at /nix/store/rzpdp2vaaxaddl6gcg4wfyczvcg0yc7f-source/lib/lists.nix:142:18:
┃ 141| len = length list;
┃ 142| fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));
┃ | ^
┃ 143| in
┃
┃ … while calling the 'length' builtin
┃ at /nix/store/rzpdp2vaaxaddl6gcg4wfyczvcg0yc7f-source/lib/lists.nix:141:13:
┃ 140| let
┃ 141| len = length list;
┃ | ^
┃ 142| fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));
┃
┃ (stack trace truncated; use '--show-trace' to show the full, detailed trace)
┃
┃ error:
┃ Failed assertions:
┃ - Either `sunrise` and `sunset` together or `longitude` and `latitude` together must be set for wlsunset
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 10:51:50 after 5s
Error:
0: Command exited with status Exited(1)
It gives the same error whether or not the lines about latitute/longitude and sunrise/sunset are commented out or not
Any help would be appreciated, full config is on codeberg