nixos/pantheon: also treat gnome-font-viewer as non-core apps

This commit is contained in:
Bobby Rong 2022-05-18 13:19:34 +08:00
parent 6f23ca82bd
commit b93b4f71f2
No known key found for this signature in database
GPG key ID: ED07364437C91161

View file

@ -212,12 +212,10 @@ in
elementary-capnet-assist elementary-capnet-assist
elementary-notifications elementary-notifications
elementary-settings-daemon elementary-settings-daemon
gnome-settings-daemon
pantheon-agent-geoclue2 pantheon-agent-geoclue2
pantheon-agent-polkit pantheon-agent-polkit
]) ++ (utils.removePackagesByName [ ]);
gnome.gnome-font-viewer
pantheon.gnome-settings-daemon
] config.environment.pantheon.excludePackages);
programs.evince.enable = mkDefault true; programs.evince.enable = mkDefault true;
programs.file-roller.enable = mkDefault true; programs.file-roller.enable = mkDefault true;
@ -272,7 +270,9 @@ in
}) })
(mkIf serviceCfg.apps.enable { (mkIf serviceCfg.apps.enable {
environment.systemPackages = with pkgs.pantheon; utils.removePackagesByName ([ environment.systemPackages = utils.removePackagesByName ([
pkgs.gnome.gnome-font-viewer
] ++ (with pkgs.pantheon; [
elementary-calculator elementary-calculator
elementary-calendar elementary-calendar
elementary-camera elementary-camera
@ -290,7 +290,7 @@ in
# Only install appcenter if flatpak is enabled before # Only install appcenter if flatpak is enabled before
# https://github.com/NixOS/nixpkgs/issues/15932 is resolved. # https://github.com/NixOS/nixpkgs/issues/15932 is resolved.
appcenter appcenter
]) config.environment.pantheon.excludePackages; ])) config.environment.pantheon.excludePackages;
# needed by screenshot # needed by screenshot
fonts.fonts = [ fonts.fonts = [