depot/third_party/home-manager/modules/services/redshift-gammastep/redshift.nix
Default email a0869759be Project import generated by Copybara.
GitOrigin-RevId: ac319fd3149b23a3ad8ee24cb2def6e67acf194c
2021-07-03 00:36:30 +02:00

24 lines
636 B
Nix

{ config, lib, pkgs, ... }:
with lib;
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 = mkIf config.services.redshift.enable commonOptions.config;
}