You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hdn can't figure out how to read the package list.
$ hdn remove gnome-2048
error: could not update home.packages attribute in home.nix
caused by: could not read values of home.packages attribute in home.nix
caused by: Error with array
Suggested Fixes
Either or both of:
Ensure these sorts of expressions can be read
Handle a # hdn anchor override that I can put into my file to denote where hdn can pretend a [ list ] begins, ignoring surrounding syntax
Context
The impl might be a bit involved on this one, but I'm doing it for a reason (it's not academic).
I do the following, basically:
home.packages = [
pkgs.python310Packages.autopep8
] ++ builtins.attrValues {
inherit (pkgs)
# many
# Many
# MANY
# pkgs.packages ;-)
;
};
That allows me to not have to put pkgs on everything, yet still also use the python310Packages.autopep8 which does not work if I just bake it in the list.
error: syntax error, unexpected '.'
at /home/bujiraso/.config/home-manager/home.nix:181:28:
181| python310Packages.autopep8
| ^
(use '--show-trace' to show detailed location information)
Perhaps a bug is required for home-manager, too, on that one, but I haven't gotten around to it.
The text was updated successfully, but these errors were encountered:
Bug
If I have the following valid Nix config:
hdn can't figure out how to read the package list.
Suggested Fixes
Either or both of:
# hdn anchor
override that I can put into my file to denote where hdn can pretend a[ list ]
begins, ignoring surrounding syntaxContext
The impl might be a bit involved on this one, but I'm doing it for a reason (it's not academic).
I do the following, basically:
That allows me to not have to put pkgs on everything, yet still also use the
python310Packages.autopep8
which does not work if I just bake it in the list.Perhaps a bug is required for home-manager, too, on that one, but I haven't gotten around to it.
The text was updated successfully, but these errors were encountered: