nixos/pantheon: make it possible to remove core packages

This commit is contained in:
Bobby Rong 2022-05-31 23:27:02 +08:00
parent c1559a07fe
commit 1097e3e80c
No known key found for this signature in database
GPG Key ID: ED07364437C91161

View File

@ -177,17 +177,28 @@ in
networking.networkmanager.enable = mkDefault true; networking.networkmanager.enable = mkDefault true;
# Global environment # Global environment
environment.systemPackages = with pkgs; [ environment.systemPackages = (with pkgs.pantheon; [
elementary-session-settings
elementary-settings-daemon
gala
gnome-settings-daemon
(switchboard-with-plugs.override {
plugs = cfg.extraSwitchboardPlugs;
})
(wingpanel-with-indicators.override {
indicators = cfg.extraWingpanelIndicators;
})
]) ++ utils.removePackagesByName ((with pkgs; [
desktop-file-utils desktop-file-utils
glib glib # for gsettings program
gnome-menus gnome-menus
gnome.adwaita-icon-theme gnome.adwaita-icon-theme
gtk3.out gtk3.out # for gtk-launch program
onboard onboard
qgnomeplatform qgnomeplatform
sound-theme-freedesktop sound-theme-freedesktop
xdg-user-dirs xdg-user-dirs # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/
] ++ (with pkgs.pantheon; [ ]) ++ (with pkgs.pantheon; [
# Artwork # Artwork
elementary-gtk-theme elementary-gtk-theme
elementary-icon-theme elementary-icon-theme
@ -197,24 +208,14 @@ in
# Desktop # Desktop
elementary-default-settings elementary-default-settings
elementary-dock elementary-dock
elementary-session-settings
elementary-shortcut-overlay elementary-shortcut-overlay
gala
(switchboard-with-plugs.override {
plugs = cfg.extraSwitchboardPlugs;
})
(wingpanel-with-indicators.override {
indicators = cfg.extraWingpanelIndicators;
})
# Services # Services
elementary-capnet-assist elementary-capnet-assist
elementary-notifications elementary-notifications
elementary-settings-daemon
gnome-settings-daemon
pantheon-agent-geoclue2 pantheon-agent-geoclue2
pantheon-agent-polkit pantheon-agent-polkit
]); ])) 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;