Hi!
I’ve run into the following problem while updating my system. This is my flake.nix:
{
description = "Nixos config flake";
inputs = {
nixpkgs-unstable = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
nixpkgs-24-11 = {
url = "github:nixos/nixpkgs/nixos-24.11";
};
nix-flatpak = {
url = "github:gmodena/nix-flatpak/";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nix-index-db = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.home-manager.follows = "home-manager";
};
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
};
cosmic-manager = {
url = "github:HeitorAugustoLN/cosmic-manager";
inputs = {
nixpkgs.follows = "nixpkgs-unstable";
home-manager.follows = "home-manager";
};
};
};
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
nixpkgs-24-11,
nix-flatpak,
home-manager,
nix-index-db,
plasma-manager,
nixos-cosmic,
cosmic-manager,
...
}@inputs:
let
system = "x86_64-linux";
args = {
inherit inputs;
inherit system;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
pkgs-24-11 = import nixpkgs-24-11 {
inherit system;
config.allowUnfree = true;
};
};
speciArgs = {
inherit inputs;
inherit system;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
pkgs-24-11 = import nixpkgs-24-11 {
inherit system;
config.allowUnfree = true;
};
flake-inputs = inputs;
};
in
{
nixosConfigurations = {
host-1 = nixpkgs-unstable.lib.nixosSystem {
specialArgs = args;
modules = [
nix-flatpak.nixosModules.nix-flatpak
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = speciArgs;
sharedModules = [
plasma-manager.homeManagerModules.plasma-manager
cosmic-manager.homeManagerModules.cosmic-manager
];
users = {
paths to user configs
};
};
}
nix-index-db.nixosModules.nix-index
nixos-cosmic.nixosModules.default
./configuration.nix
./host-1/import.nix
];
};
host-2 = nixpkgs-unstable.lib.nixosSystem {
specialArgs = args;
modules = [
nix-flatpak.nixosModules.nix-flatpak
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = args;
sharedModules = [
plasma-manager.homeManagerModules.plasma-manager
cosmic-manager.homeManagerModules.cosmic-manager
];
users = {
paths to user configs
};
};
}
nix-index-db.nixosModules.nix-index
nixos-cosmic.nixosModules.default
./configuration.nix
./host-2/import.nix
];
};
host-3 = nixpkgs-unstable.lib.nixosSystem {
specialArgs = args;
modules = [
nix-flatpak.nixosModules.nix-flatpak
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = args;
sharedModules = [
plasma-manager.homeManagerModules.plasma-manager
cosmic-manager.homeManagerModules.cosmic-manager
];
users = {
paths to user configs
};
};
}
nix-index-db.nixosModules.nix-index
nixos-cosmic.nixosModules.default
./configuration.nix
./host-3/import.nix
];
};
};
};
}
When I run nixos-rebuild switch
I get this output:
[root@host-1:~]# nixos-rebuild switch
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/store/kcmmd6alr3lx56vkf72503h3pxgf6iv4-source/lib/attrsets.nix:1534:13:
1533| if length values == 1 || pred here (elemAt values 1) (head values) then
1534| head values
| ^
1535| else
… while evaluating the attribute 'value'
at /nix/store/kcmmd6alr3lx56vkf72503h3pxgf6iv4-source/lib/modules.nix:1084:7:
1083| // {
1084| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1085| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/kcmmd6alr3lx56vkf72503h3pxgf6iv4-source/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `xdg.portal.extraPortals':
… while evaluating definitions from `/nix/store/mh19rx4890bi803nx459m6a8frp235if-source/configuration.nix':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: The top-level xdg-desktop-portal-kde alias has been removed.
Please explicitly use kdePackages.xdg-desktop-portal-kde for the latest Qt 6-based version,
or libsForQt5.xdg-desktop-portal-kde for the deprecated Qt 5 version.
Note that Qt 5 versions of most KDE software will be removed in NixOS 25.11.
[root@host-1:~]#
What does it mean?