mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Fix night-light
This commit is contained in:
parent
18fa79a0fc
commit
1dca7aa6f4
10 changed files with 43 additions and 31 deletions
|
|
@ -14,7 +14,7 @@
|
|||
./syncthing.nix
|
||||
./nix-helper.nix
|
||||
./auto-gc.nix
|
||||
./night-light.nix
|
||||
./geoclue.nix
|
||||
./tailscale.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
20
modules/system/geoclue.nix
Normal file
20
modules/system/geoclue.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.geoclue.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.geoclue.enable {
|
||||
sops.secrets.geoclue-location-service = {
|
||||
owner = "geoclue";
|
||||
path = "/etc/geoclue/conf.d/location-service.conf";
|
||||
};
|
||||
|
||||
services.geoclue2 = {
|
||||
enable = true;
|
||||
|
||||
appConfig.gammastep = {
|
||||
isAllowed = true;
|
||||
isSystem = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.night-light.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.night-light.enable {
|
||||
services.geoclue2 = {
|
||||
enable = true;
|
||||
appConfig.gammastep = {
|
||||
isAllowed = true;
|
||||
isSystem = false;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
provider = "geoclue2";
|
||||
settings.general.adjustment-method = "wayland";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue