1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 20:11:06 +01:00
home-manager/tests/modules/services/redshift-gammastep/gammastep-basic-configuration.nix
Austin Horstman fefeb0e928 tests/redshift-gammastep: check file exists first
Just leads to less confusing output when we have a missing file.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

29 lines
728 B
Nix

{
services.gammastep = {
enable = true;
provider = "manual";
dawnTime = "6:00-7:45";
duskTime = "18:35-20:15";
settings = {
general = {
adjustment-method = "randr";
gamma = 0.8;
};
randr = {
screen = 0;
};
};
};
nmt.script = ''
assertFileExists home-files/.config/gammastep/config.ini
assertFileContent \
home-files/.config/gammastep/config.ini \
${./gammastep-basic-configuration-file-expected.conf}
assertFileExists home-files/.config/systemd/user/gammastep.service
assertFileContent \
home-files/.config/systemd/user/gammastep.service \
${./gammastep-basic-configuration-expected.service}
'';
}