nixos/profiles/sway/location.nix

34 lines
734 B
Nix
Raw Permalink Normal View History

2023-11-07 22:00:00 +01:00
{ config, lib, ... }:
2023-03-19 12:38:08 +01:00
let
cfg = config.my.profiles.sway-location;
in
{
options.my.profiles.sway-location = with lib; {
enable = mkEnableOption "sway-location profile";
};
config = lib.mkIf cfg.enable {
location.provider = "geoclue2";
services.geoclue2 = {
enable = true;
enableDemoAgent = true;
appConfig."gammastep" = {
desktopID = "gammastep";
isAllowed = true;
isSystem = false;
# Empty list allows all users
users = [ ];
};
appConfig."gammastep-indicator" = {
desktopID = "gammastep-indicator";
isAllowed = true;
isSystem = false;
# Empty list allows all users
users = [ ];
};
};
};
}