Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pantheon.pantheon-agent-geoclue2: drop #233779

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion nixos/modules/services/desktops/geoclue2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let

cfg = config.services.geoclue2;

defaultWhitelist = [ "gnome-shell" "io.elementary.desktop.agent-geoclue2" ];
defaultWhitelist = [ "gnome-shell" ];

appConfigModule = types.submodule ({ name, ... }: {
options = {
Expand Down
15 changes: 4 additions & 11 deletions nixos/modules/services/x11/desktop-managers/pantheon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ in

config = mkMerge [
(mkIf cfg.enable {
services.xserver.desktopManager.pantheon.sessionPath = utils.removePackagesByName [
pkgs.pantheon.pantheon-agent-geoclue2
] config.environment.pantheon.excludePackages;

services.xserver.displayManager.sessionPackages = [ pkgs.pantheon.elementary-session-settings ];

# Ensure lightdm is used when Pantheon is enabled
Expand All @@ -113,6 +109,7 @@ in

services.xserver.displayManager.sessionCommands = ''
if test "$XDG_CURRENT_DESKTOP" = "Pantheon"; then
true
${concatMapStrings (p: ''
if [ -d "${p}/share/gsettings-schemas/${p.name}" ]; then
export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${p}/share/gsettings-schemas/${p.name}
Expand Down Expand Up @@ -161,12 +158,9 @@ in
services.xserver.updateDbusEnvironment = true;
services.zeitgeist.enable = mkDefault true;
services.geoclue2.enable = mkDefault true;
# pantheon has pantheon-agent-geoclue2
services.geoclue2.enableDemoAgent = false;
services.geoclue2.appConfig."io.elementary.desktop.agent-geoclue2" = {
isAllowed = true;
isSystem = true;
};
# TODO: investigate why "demo" is needed here
# https://github.com/elementary/seeds/pull/100#issuecomment-1562310351
services.geoclue2.enableDemoAgent = true;
services.udev.packages = [
pkgs.pantheon.gnome-settings-daemon
# Force enable KMS modifiers for devices that require them.
Expand Down Expand Up @@ -216,7 +210,6 @@ in
# Services
elementary-capnet-assist
elementary-notifications
pantheon-agent-geoclue2
pantheon-agent-polkit
])) config.environment.pantheon.excludePackages;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/pantheon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ lib.makeScope pkgs.newScope (self: with self; {

elementary-settings-daemon = callPackage ./services/elementary-settings-daemon { };

pantheon-agent-geoclue2 = callPackage ./services/pantheon-agent-geoclue2 { };

pantheon-agent-polkit = callPackage ./services/pantheon-agent-polkit { };

xdg-desktop-portal-pantheon = callPackage ./services/xdg-desktop-portal-pantheon { };
Expand Down Expand Up @@ -250,4 +248,6 @@ lib.makeScope pkgs.newScope (self: with self; {

notes-up = throw "The ‘pantheon.notes-up’ alias was removed on 2022-02-02, please use ‘pkgs.notes-up’ directly."; # added 2021-12-18

pantheon-agent-geoclue2 = throw "pantheon-agent-geoclue2 has been removed, portals are preferred these days."; # added 2023-05-24

}

This file was deleted.