mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Move modules in programs/services subfolders
This commit is contained in:
parent
2ff87c8404
commit
211ca98e92
38 changed files with 0 additions and 0 deletions
25
modules/home/services/gammastep.nix
Normal file
25
modules/home/services/gammastep.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, lib, ... }@moduleArgs:
|
||||
{
|
||||
options.custom.services.gammastep.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.services.gammastep.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion =
|
||||
let
|
||||
inherit (moduleArgs.osConfig.services) geoclue2;
|
||||
in
|
||||
geoclue2.enable or true && geoclue2.appConfig.gammastep.isAllowed or true;
|
||||
message = "gammastep requires geoclue";
|
||||
}
|
||||
];
|
||||
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
settings.general.adjustment-method = "wayland";
|
||||
|
||||
temperature.night = 2700;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue