Change:
Describe the bug Some options for gnome configuration don't work. I have disabled xterm and excluded gnome-software in my configuration but it is still installed in my system. config I am using Xterm shouldn't be installed if it is disabled. If gnome-software is installed by default for flatpak then I think that it should be an option and shouldn't override . Notify maintainers Metadata Please run and paste the result. system: host os: multi-user?: sandbox: version: nixpkgs: Maintainer information:
GNOME Software is actually installed by Flatpak module (introduced in ) so does not handle it. Maybe it should. Do not see in your config, maybe double check it is disabled using program. Either way, it should be unrelated to GNOME.
I have enabled it, sorry didn't post the snippet.
GNOME Software consumes a lot of memory even if it is not launched and is quite slow also there are alternatives that are being worked on like . So people in future might want to switch the gui for flatpak. If handling by exclude package doesn't look like a good solution then adding a module for flatpak to choose to install the software center would be better.
I used this . Maybe just add the documentation for this option since it is not present in .

Discussion:
options = { services.flatpak = { enable = mkEnableOption "flatpak"; <del> guiPackages = mkOption { internal = true; type = types.listOf types.package; default = []; example = literalExample "[ pkgs.gnome.gnome-software ]"; description = '' Packages that provide an interface for flatpak (like gnome-software) that will be automatically available to all users when flatpak is enabled. ''; }; </del> }; };

} ]; <del> environment.systemPackages = [ pkgs.flatpak ] ++ cfg.guiPackages; </del> <ins> environment.systemPackages = [ pkgs.flatpak ]; </ins> services.dbus.packages = [ pkgs.flatpak ];

# If gnome is installed, build vim for gtk3 too. nixpkgs.config.vim.gui = "gtk3"; <del> # Install gnome-software if flatpak is enabled services.flatpak.guiPackages = [ pkgs.gnome.gnome-software ]; </del> }) (mkIf flashbackEnabled {

# Adapt from https://gitlab.gnome.org/GNOME/gnome-build-meta/blob/gnome-3-38/elements/core/meta-gnome-core-utilities.bst (mkIf serviceCfg.core-utilities.enable { <del> environment.systemPackages = (with pkgs.gnome; removePackagesByName [ baobab cheese eog epiphany gedit gnome-calculator gnome-calendar gnome-characters gnome-clocks gnome-contacts gnome-font-viewer gnome-logs gnome-maps gnome-music pkgs.gnome-photos gnome-screenshot gnome-system-monitor gnome-weather nautilus pkgs.gnome-connections simple-scan totem yelp ] config.environment.gnome.excludePackages); </del> <ins> environment.systemPackages = with pkgs.gnome; removePackagesByName ([ baobab cheese eog epiphany gedit gnome-calculator gnome-calendar gnome-characters gnome-clocks gnome-contacts gnome-font-viewer gnome-logs gnome-maps gnome-music pkgs.gnome-photos gnome-screenshot gnome-system-monitor gnome-weather nautilus pkgs.gnome-connections simple-scan totem yelp ] ++ lib.optionals config.services.flatpak.enable [ # Since PackageKit Nix support is not there yet, # only install gnome-software if flatpak is enabled. gnome-software ]) config.environment.gnome.excludePackages; </ins> # Enable default program modules # Since some of these have a corresponding package, we only