Closed QingyaoLin closed 1 year ago
@Misterio77
Hey!
You tried to import inputs.nix-colors.homeManagerModules
, this is an attribute set of modules, not a module:
$ nix eval github:misterio77/nix-colors#homeManagerModules
{ colorScheme = { imports = [ /nix/store/yrphffvjp2dmq7vrycq1p6ziibj6cygz-source/module/colorscheme.nix ]; }; colorscheme = «repeated»; default = «repeated»; }
You should instead import inputs.nix-colors.homeManagerModules.colorScheme
, or inputs.nix-colors.homeManagerModules.default
(they're both the same thing).
By the way, any arbitrary attribute sets are technically modules; so that's why the error message didn't point that out.
Hey!
You tried to import
inputs.nix-colors.homeManagerModules
, this is an attribute set of modules, not a module:$ nix eval github:misterio77/nix-colors#homeManagerModules { colorScheme = { imports = [ /nix/store/yrphffvjp2dmq7vrycq1p6ziibj6cygz-source/module/colorscheme.nix ]; }; colorscheme = «repeated»; default = «repeated»; }
You should instead import
inputs.nix-colors.homeManagerModules.colorScheme
, orinputs.nix-colors.homeManagerModules.default
(they're both the same thing).
Thanks. But in the introduction to the use of nix-colors, it is still inputs.nix-colors.homeManagerModules
, which misleads me.
With that done, move on to your home manager configuration. You should import the nix-colors.homeManagerModule, and set the option colorScheme to your preferred scheme, such as nix-colors.colorSchemes.dracula
Thanks for the heads up. Do note it's actually singular homeManagerModule
(which is a "deprecated" alias to homeManagerModules.default
.
Thanks again for your help and dedication, nix is wonderful because of you.
I use nix-colors in the standalone home manager, but the home manager says there is no
colorScheme
option.I don't know what I missed. I have checked my configuration in detail.
Here is my relevant sample file: