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