Hi, I struggle with using package specific settings. I tried to get the vimix-gtk-themes package working with another themeVariant. I tried setting the variant using the nixpkgs.config but no success so far. Maybe somebody can help? Thanks in advance!
The “configuration” arguments to the package expression are not doing anything special, they are arguments like any other – callPackage will attempt to populate them and when a corresponding attribute does not exist in the scope, they will fall back to the default value specified in the expression.
There are two main ways you can override the value:
You can insert the themeVariants into the pkgs scope using an overlay:
(final: prev: {
themeVariants = [ "beryl" ];
})
Though note that it will be passed to all packages that accept themeVariants argument so it is not generally a good idea.
You can create a custom instance of the package by overriding the argument: