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