this post was submitted on 21 Jul 2025
7 points (88.9% liked)

Nix / NixOS

2583 readers
5 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

Hi, new NixOS user here.

Liking it so far but just hit an issue that I'm having trouble getting past. Pages in firefox cannot access my geolocation, even after I hit allow when the page asks for permission. Same with the default Gnome maps app, it just places me in a central location of my countrys capital (I don't live in the capital).

I've added the following to my configuration.nix file and rebuilt but it made no difference.

 # Geolocation
  services.geoclue2.enable = true;

  environment.sessionVariables = {
    # Allows geolocation in firefox
    MOZ_ENABLE_WAYLAND = "1"; 
  };

What am I missing?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] hyveltjuven@lemmy.world 1 points 5 months ago (1 children)

Just noticed that your accuarcy is at 25000 meters as well, are you getting anywhere near your actual location in map applications?

[โ€“] balsoft@lemmy.ml 1 points 5 months ago

Well, it gets the city right at least, and that's enough for me