home-manager/tests/modules/services/redshift-gammastep/redshift-basic-configuration.nix
2021-01-26 01:40:25 -03:00

26 lines
526 B
Nix

{ config, pkgs, ... }:
{
config = {
services.redshift = {
enable = true;
provider = "manual";
latitude = "0.0";
longitude = "0.0";
};
nixpkgs.overlays = [
(self: super: {
redshift = pkgs.writeScriptBin "dummy-redshift" "" // {
outPath = "@redshift@";
};
})
];
nmt.script = ''
assertFileContent \
home-files/.config/systemd/user/redshift.service \
${./redshift-basic-configuration-expected.service}
'';
};
}