mirror of
https://github.com/nix-community/home-manager
synced 2024-12-02 16:09:46 +01:00
27 lines
526 B
Nix
27 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}
|
||
|
'';
|
||
|
};
|
||
|
}
|