Converted gammastep module to home module

This commit is contained in:
alejandro-angulo 2024-08-03 08:34:19 -07:00
parent 0862244fd2
commit 9c9667e5ef
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
5 changed files with 30 additions and 30 deletions

View file

@ -0,0 +1,21 @@
{
config,
lib,
namespace,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.services.gammastep;
in {
options.${namespace}.services.gammastep = {
enable = mkEnableOption "gammastep";
};
config = mkIf cfg.enable {
services.gammastep = {
enable = true;
provider = "geoclue2";
};
};
}