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 = "gammastep";
|
|
|
|
programName = "Gammastep";
|
2021-01-28 01:25:47 +01:00
|
|
|
# https://gitlab.com/chinstrap/gammastep/-/commit/1608ed61154cc652b087e85c4ce6125643e76e2f
|
|
|
|
mainSection = "general";
|
2021-01-23 23:03:57 +01:00
|
|
|
defaultPackage = pkgs.gammastep;
|
|
|
|
examplePackage = "pkgs.gammastep";
|
|
|
|
mainExecutable = "gammastep";
|
|
|
|
appletExecutable = "gammastep-indicator";
|
2021-01-28 01:25:47 +01:00
|
|
|
xdgConfigFilePath = "gammastep/config.ini";
|
2021-01-23 23:03:57 +01:00
|
|
|
serviceDocumentation = "https://gitlab.com/chinstrap/gammastep/";
|
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
2021-02-17 05:19:28 +01:00
|
|
|
inherit (commonOptions) imports meta;
|
2021-01-23 23:03:57 +01:00
|
|
|
options.services.gammastep = commonOptions.options;
|
|
|
|
config = mkIf config.services.gammastep.enable commonOptions.config;
|
|
|
|
}
|