not7cd
December 31, 2021, 4:18pm
1
After an update from 21.04 to 21.11, I’m experiencing problem with my configuration.
$ nixos-rebuild build
building Nix...
building the system configuration...
error: ksysguard has been replaced with plasma-systemmonitor
I’m adding plasma 5 packages in this manner.
{
environment.systemPackages = with pkgs; [
# packages omitted
] ++ builtins.filter lib.isDerivation (builtins.attrValues plasma5Packages.kdeGear)
++ builtins.filter lib.isDerivation (builtins.attrValues plasma5Packages.kdeFrameworks)
++ builtins.filter lib.isDerivation (builtins.attrValues plasma5Packages.plasma5);
}
The problem lies within plasma5Packages.plasma5
, the error is thrown by lines introduced in part by plasma5Packages.ksysguard: remove if !allowAliases by alyssais · Pull Request #138395 · NixOS/nixpkgs · GitHub
And is connected with this issue, ksysguard throw message is not helpful · Issue #148452 · NixOS/nixpkgs · GitHub
I’m not sure how to proceed.
M12
December 31, 2021, 4:53pm
2
my configuration.nix does not have the part after the ]
++ builtins.filter lib.isDerivation (builtins.attrValues plasma5Packages.plasma5)
so remove that? (leave the ; after ])
plasma 5 is chosen in my config in the default way:
# Enable the Plasma 5 Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
updating from 21.05 to 21.11 was flawless!
and maybe after upgrading, put back your configuration?
not7cd
December 31, 2021, 5:31pm
3
Adding plasma5Packages.plasma5
provides packages required for full desktop experience.
What you propose is enabling only bare bone desktop manager, which I also have in my config.
To maybe paraphrase it. ksysguard
is sneaking in plasma5Packages.plasma5
. I don’t want to build this package list manually, I want to somehow filter ksysguard
out.
M12
December 31, 2021, 5:42pm
4
I only proposed a workaround, you can go back to your preference after upgrading
not7cd
December 31, 2021, 5:52pm
5
I think I tried that, and it mostly broke my experience. Do you have most of packages listed here available with just services.xserver.desktopManager.plasma5.enable = true;
?
/*
# New packages
READ THIS FIRST
This module is for official packages in KDE Plasma 5. All available packages are
listed in `./srcs.nix`, although a few are not yet packaged in Nixpkgs (see
below).
IF YOUR PACKAGE IS NOT LISTED IN `./srcs.nix`, IT DOES NOT GO HERE.
Many of the packages released upstream are not yet built in Nixpkgs due to lack
of demand. To add a Nixpkgs build for an upstream package, copy one of the
existing packages here and modify it as necessary.
# Updates
1. Update the URL in `./fetch.sh`.
2. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/desktops/plasma-5`
This file has been truncated. show original
M12
December 31, 2021, 8:31pm
6
maybe the config I proposed has to be done on the old 21.05 channel first
and then, when that is working, (after a nixos-rebuild switch or boot) upgrade to channel 21.11
and then go back to your wished config, on 21.11
that is the beauty of NixOS, you should not be too afraid of changing a few things in your config, you can always go back or further!
Good luck!
edrex
January 22, 2022, 5:31am
7
i hit the same issue. it’s currently necessary to set
nixpkgs.config.allowAliases = false;
This will break any aliases you’re using, so for example I had to change nix.package
from nixFlakes
to nixUnstable
for my flakes-built system.