2020-11-28 01:47:35 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
services.wlsunset = {
|
|
|
|
enable = true;
|
2021-09-26 11:08:45 +02:00
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@wlsunset@"; };
|
2020-11-28 01:47:35 +01:00
|
|
|
latitude = "12.3";
|
|
|
|
longitude = "128.8";
|
|
|
|
temperature.day = 6000;
|
|
|
|
temperature.night = 3500;
|
|
|
|
gamma = "0.6";
|
|
|
|
systemdTarget = "test.target";
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
serviceFile=home-files/.config/systemd/user/wlsunset.service
|
|
|
|
|
|
|
|
assertFileExists $serviceFile
|
|
|
|
assertFileContent $serviceFile ${./wlsunset-service-expected.service}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|