2021-01-23 23:03:57 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
commonOptions = import ./lib/options.nix {
|
2021-01-28 01:25:47 +01:00
|
|
|
inherit config lib pkgs;
|
2021-01-23 23:03:57 +01:00
|
|
|
|
|
|
|
moduleName = "redshift";
|
|
|
|
programName = "Redshift";
|
2021-01-28 01:25:47 +01:00
|
|
|
mainSection = "redshift";
|
2021-01-23 23:03:57 +01:00
|
|
|
defaultPackage = pkgs.redshift;
|
|
|
|
examplePackage = "pkgs.redshift";
|
|
|
|
mainExecutable = "redshift";
|
|
|
|
appletExecutable = "redshift-gtk";
|
2021-01-28 01:25:47 +01:00
|
|
|
xdgConfigFilePath = "redshift/redshift.conf";
|
2021-01-23 23:03:57 +01:00
|
|
|
serviceDocumentation = "http://jonls.dk/redshift/";
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
|
|
|
meta = commonOptions.meta;
|
|
|
|
options.services.redshift = commonOptions.options;
|
|
|
|
config = mkIf config.services.redshift.enable commonOptions.config;
|
|
|
|
}
|