mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
27 lines
636 B
Nix
27 lines
636 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
commonOptions = import ./lib/options.nix {
|
|
inherit config lib pkgs;
|
|
|
|
moduleName = "redshift";
|
|
programName = "Redshift";
|
|
mainSection = "redshift";
|
|
defaultPackage = pkgs.redshift;
|
|
examplePackage = "pkgs.redshift";
|
|
mainExecutable = "redshift";
|
|
appletExecutable = "redshift-gtk";
|
|
xdgConfigFilePath = "redshift/redshift.conf";
|
|
serviceDocumentation = "http://jonls.dk/redshift/";
|
|
};
|
|
|
|
in
|
|
{
|
|
inherit (commonOptions) imports meta;
|
|
options.services.redshift = commonOptions.options;
|
|
config = lib.mkIf config.services.redshift.enable commonOptions.config;
|
|
}
|