1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 12:01:08 +01:00
home-manager/tests/modules/services/redshift-gammastep/redshift-tray-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.redshift = {
enable = true;
provider = "manual";
latitude = 0.0;
longitude = "0.0";
settings = {
redshift = {
adjustment-method = "randr";
gamma = 0.8;
};
randr = {
screen = 0;
};
};
tray = true;
};
nmt.script = ''
assertFileExists home-files/.config/redshift/redshift.conf
assertFileContent \
home-files/.config/redshift/redshift.conf \
${./redshift-basic-configuration-file-expected.conf}
assertFileExists home-files/.config/systemd/user/redshift.service
assertFileContent \
home-files/.config/systemd/user/redshift.service \
${./redshift-tray-configuration-expected.service}
'';
}