Hello everyone, How can I install all package in a package set?
I tried add it to home.packages ,but i got error: A definition for option home-manager.users.zhou2008.home.packages."[definition 9-entry 1]" is not of type 'package'.
home.packages = with pkgs; [
kdePackages
microsoft-edge
vscode
vlc
qq
tdesktop
tree htop wget curl git
];
➜ ~ update
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/store/s8pb2vy9zdjxlc5gr2iwkkm9y5gqr4ph-source/lib/attrsets.nix:1575:11:
1574| || pred here (elemAt values 1) (head values) then
1575| head values
| ^
1576| else
… while evaluating the attribute 'value'
at /nix/store/s8pb2vy9zdjxlc5gr2iwkkm9y5gqr4ph-source/lib/modules.nix:809:9:
808| in warnDeprecation opt //
809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
810| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: qt6Packages now uses makeScopeWithSplicing which does not have "overrideScope'", use "overrideScope".
➜ ~
Of course. You probably want pname instead of name though.
You can launch a REPL (nix repl --file '<nixpkgs>') and use that to look at all the attributes of a package (type kdePackages.audiotube.name to see what that is, and kdePackages.audiotube.pname to see how that’s different).