Inherit location from OS configuration

This commit is contained in:
Mikael Voss 2024-08-04 14:19:12 +02:00
parent 505260c824
commit 7c68d70f68

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, osConfig, ... }:
let
inherit (osConfig) hardware;
inherit (osConfig) hardware location;
graphical =
if lib.versionAtLeast osConfig.system.stateVersion "24.11"
@ -322,8 +322,12 @@ in lib.mkIf graphical {
programs.yt-dlp.enable = true;
services.gammastep = {
inherit (location) provider;
enable = true;
provider = "geoclue2";
latitude = location.latitude or null;
longitude = location.longitude or null;
settings = {
general.adjustment-method = "wayland";
};