Misterio77 / nix-colors

Modules and schemes to make theming with Nix awesome.
GNU General Public License v3.0
465 stars 38 forks source link

[Question] Usage with SDDM Theme #36

Open jhilker98 opened 1 year ago

jhilker98 commented 1 year ago

Hi there, thanks for maintaining this. I really like being able to quickly get a consistent colorscheme for all my programs.

I'm currently creating a package for the sddm-sugar-dark theme, and trying to use nix-colors to create a wallpaper for it in a virtual machine. However, I'm getting an error that says argument nix-colors is required but not being passed. Here is my flake, and here are the files I'm using. I'm not sure what's going wrong, but I'd love to be able to use nix-colors to rice my login manager as well as my desktop.

Misterio77 commented 1 year ago

Hey! Thanks for your kind words.

So, the ideia is that extraArgs only sets arguments for modules that are part of your configuration (i.e. part of modules on your flake or imports on other module files), callPackage does not propagate them by default. Try to do something like foo = pkgs.callPackage ./foo { inherit nix-colors; }

jhilker98 commented 1 year ago

Thanks so much! I'll try that.

On Tue, May 2, 2023, 8:45 AM Gabriel Fontes @.***> wrote:

Hey! Thanks for your kind words.

So, the ideia is that extraArgs only sets arguments for modules that are part of your configuration, callPackage does not propagate them by default. Try to do something like foo = pkgs.callPackage ./foo { inherit nix-colors; }

— Reply to this email directly, view it on GitHub https://github.com/Misterio77/nix-colors/issues/36#issuecomment-1531415219, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACY54OCWIJ7HVKWUA5BEFGLXED6XHANCNFSM6AAAAAAXIXO2QQ . You are receiving this because you authored the thread.Message ID: @.***>